; LLVM IR from moarseniy/CudaFEMproject :: FEMproject/fem_utils/src/cpu_fem_utils.ll (ZN16CPU_ElementsData19genGradientMatrix3DEv)

; 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::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.7" }
%"struct.std::_Head_base.7" = type { ptr }
%class.ElementsData = type { ptr, i64, i64, i64, i64, i64, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.CGMData, ptr, ptr, ptr }
%struct.CGMData = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

; 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

declare void @_ZNK6Matrix6getRowEm(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(49), i64 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

declare noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49), i64 noundef, i64 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

declare noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49), i64 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z8det3_cpufffffffff(float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z6get_idmmm(i64 noundef, i64 noundef, i64 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16CPU_ElementsData19genGradientMatrix3DEv(ptr noundef nonnull align 8 dereferenceable(336) %0) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::unique_ptr", align 8
  %6 = alloca %"class.std::unique_ptr", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %14 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  store i64 0, ptr %3, align 8, !tbaa !9
  br label %15

15:                                               ; preds = %399, %1
  %16 = load i64, ptr %3, align 8, !tbaa !9
  %17 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 2
  %18 = load i64, ptr %17, align 8, !tbaa !11
  %19 = icmp ult i64 %16, %18
  br i1 %19, label %21, label %20

20:                                               ; preds = %15
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  br label %404

21:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %22 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 30
  %23 = load ptr, ptr %22, align 8, !tbaa !15
  %24 = load i64, ptr %3, align 8, !tbaa !9
  call void @_ZNK6Matrix6getRowEm(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %5, ptr noundef nonnull align 8 dereferenceable(49) %23, i64 noundef %24)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %25 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 22
  %26 = load ptr, ptr %25, align 8, !tbaa !16
  %27 = load i64, ptr %3, align 8, !tbaa !9
  invoke void @_ZNK6Matrix6getRowEm(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %6, ptr noundef nonnull align 8 dereferenceable(49) %26, i64 noundef %27)
          to label %28 unwind label %59

28:                                               ; preds = %21
  %29 = call noundef ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %30 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %31 = load i64, ptr %30, align 8, !tbaa !17
  %32 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %33 = load i64, ptr %32, align 8, !tbaa !17
  %34 = add i64 %33, 1
  %35 = load ptr, ptr %29, align 8, !tbaa !18
  %36 = getelementptr inbounds ptr, ptr %35, i64 26
  %37 = load ptr, ptr %36, align 8
  invoke void %37(ptr noundef nonnull align 8 dereferenceable(49) %29, i64 noundef %31, i64 noundef %34)
          to label %38 unwind label %63

38:                                               ; preds = %28
  %39 = call noundef ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %40 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %41 = load i64, ptr %40, align 8, !tbaa !17
  %42 = sub i64 %41, 1
  %43 = mul i64 3, %42
  %44 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %45 = load i64, ptr %44, align 8, !tbaa !17
  %46 = sub i64 %45, 1
  %47 = mul i64 6, %46
  %48 = load ptr, ptr %39, align 8, !tbaa !18
  %49 = getelementptr inbounds ptr, ptr %48, i64 26
  %50 = load ptr, ptr %49, align 8
  invoke void %50(ptr noundef nonnull align 8 dereferenceable(49) %39, i64 noundef %43, i64 noundef %47)
          to label %51 unwind label %63

51:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %52

52:                                               ; preds = %381, %51
  %53 = load i64, ptr %9, align 8, !tbaa !9
  %54 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %55 = load i64, ptr %54, align 8, !tbaa !17
  %56 = add i64 %55, 1
  %57 = icmp ult i64 %53, %56
  br i1 %57, label %67, label %58

58:                                               ; preds = %52
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %398

59:                                               ; preds = %21
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %7, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %8, align 4
  br label %403

63:                                               ; preds = %38, %28
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %7, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %8, align 4
  br label %402

67:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %68 = load i64, ptr %9, align 8, !tbaa !9
  %69 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %70 = load i64, ptr %69, align 8, !tbaa !17
  %71 = mul i64 %68, %70
  store i64 %71, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %72 = load i64, ptr %9, align 8, !tbaa !9
  %73 = invoke noundef double @_ZSt3powIfmEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef -1.000000e+00, i64 noundef %72)
          to label %74 unwind label %384

74:                                               ; preds = %67
  %75 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %76 = load i64, ptr %9, align 8, !tbaa !9
  %77 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %78 = load i64, ptr %77, align 8, !tbaa !17
  %79 = call noundef i64 @_Z6get_idmmm(i64 noundef %76, i64 noundef 3, i64 noundef %78)
  %80 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %81 = load i64, ptr %80, align 8, !tbaa !17
  %82 = add i64 %81, 1
  %83 = mul i64 1, %82
  %84 = add i64 %79, %83
  %85 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %75, i64 noundef %84)
          to label %86 unwind label %384

86:                                               ; preds = %74
  %87 = load float, ptr %85, align 4, !tbaa !20
  %88 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %89 = load i64, ptr %9, align 8, !tbaa !9
  %90 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %91 = load i64, ptr %90, align 8, !tbaa !17
  %92 = call noundef i64 @_Z6get_idmmm(i64 noundef %89, i64 noundef 3, i64 noundef %91)
  %93 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %94 = load i64, ptr %93, align 8, !tbaa !17
  %95 = add i64 %94, 1
  %96 = mul i64 2, %95
  %97 = add i64 %92, %96
  %98 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %88, i64 noundef %97)
          to label %99 unwind label %384

99:                                               ; preds = %86
  %100 = load float, ptr %98, align 4, !tbaa !20
  %101 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %102 = load i64, ptr %9, align 8, !tbaa !9
  %103 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %104 = load i64, ptr %103, align 8, !tbaa !17
  %105 = call noundef i64 @_Z6get_idmmm(i64 noundef %102, i64 noundef 2, i64 noundef %104)
  %106 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %107 = load i64, ptr %106, align 8, !tbaa !17
  %108 = add i64 %107, 1
  %109 = mul i64 1, %108
  %110 = add i64 %105, %109
  %111 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %101, i64 noundef %110)
          to label %112 unwind label %384

112:                                              ; preds = %99
  %113 = load float, ptr %111, align 4, !tbaa !20
  %114 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %115 = load i64, ptr %9, align 8, !tbaa !9
  %116 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %117 = load i64, ptr %116, align 8, !tbaa !17
  %118 = call noundef i64 @_Z6get_idmmm(i64 noundef %115, i64 noundef 2, i64 noundef %117)
  %119 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %120 = load i64, ptr %119, align 8, !tbaa !17
  %121 = add i64 %120, 1
  %122 = mul i64 2, %121
  %123 = add i64 %118, %122
  %124 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %114, i64 noundef %123)
          to label %125 unwind label %384

125:                                              ; preds = %112
  %126 = load float, ptr %124, align 4, !tbaa !20
  %127 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %128 = load i64, ptr %9, align 8, !tbaa !9
  %129 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %130 = load i64, ptr %129, align 8, !tbaa !17
  %131 = call noundef i64 @_Z6get_idmmm(i64 noundef %128, i64 noundef 1, i64 noundef %130)
  %132 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %133 = load i64, ptr %132, align 8, !tbaa !17
  %134 = add i64 %133, 1
  %135 = mul i64 1, %134
  %136 = add i64 %131, %135
  %137 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %127, i64 noundef %136)
          to label %138 unwind label %384

138:                                              ; preds = %125
  %139 = load float, ptr %137, align 4, !tbaa !20
  %140 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %141 = load i64, ptr %9, align 8, !tbaa !9
  %142 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %143 = load i64, ptr %142, align 8, !tbaa !17
  %144 = call noundef i64 @_Z6get_idmmm(i64 noundef %141, i64 noundef 1, i64 noundef %143)
  %145 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %146 = load i64, ptr %145, align 8, !tbaa !17
  %147 = add i64 %146, 1
  %148 = mul i64 2, %147
  %149 = add i64 %144, %148
  %150 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %140, i64 noundef %149)
          to label %151 unwind label %384

151:                                              ; preds = %138
  %152 = load float, ptr %150, align 4, !tbaa !20
  %153 = call noundef float @_Z8det3_cpufffffffff(float noundef 1.000000e+00, float noundef %87, float noundef %100, float noundef 1.000000e+00, float noundef %113, float noundef %126, float noundef 1.000000e+00, float noundef %139, float noundef %152)
  %154 = fpext float %153 to double
  %155 = fmul double %73, %154
  %156 = fptrunc double %155 to float
  store float %156, ptr %11, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %157 = load i64, ptr %9, align 8, !tbaa !9
  %158 = invoke noundef double @_ZSt3powIfmEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef -1.000000e+00, i64 noundef %157)
          to label %159 unwind label %388

159:                                              ; preds = %151
  %160 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %161 = load i64, ptr %9, align 8, !tbaa !9
  %162 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %163 = load i64, ptr %162, align 8, !tbaa !17
  %164 = call noundef i64 @_Z6get_idmmm(i64 noundef %161, i64 noundef 3, i64 noundef %163)
  %165 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %166 = load i64, ptr %165, align 8, !tbaa !17
  %167 = add i64 %166, 1
  %168 = mul i64 0, %167
  %169 = add i64 %164, %168
  %170 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %160, i64 noundef %169)
          to label %171 unwind label %388

171:                                              ; preds = %159
  %172 = load float, ptr %170, align 4, !tbaa !20
  %173 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %174 = load i64, ptr %9, align 8, !tbaa !9
  %175 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %176 = load i64, ptr %175, align 8, !tbaa !17
  %177 = call noundef i64 @_Z6get_idmmm(i64 noundef %174, i64 noundef 3, i64 noundef %176)
  %178 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %179 = load i64, ptr %178, align 8, !tbaa !17
  %180 = add i64 %179, 1
  %181 = mul i64 2, %180
  %182 = add i64 %177, %181
  %183 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %173, i64 noundef %182)
          to label %184 unwind label %388

184:                                              ; preds = %171
  %185 = load float, ptr %183, align 4, !tbaa !20
  %186 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %187 = load i64, ptr %9, align 8, !tbaa !9
  %188 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %189 = load i64, ptr %188, align 8, !tbaa !17
  %190 = call noundef i64 @_Z6get_idmmm(i64 noundef %187, i64 noundef 2, i64 noundef %189)
  %191 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %192 = load i64, ptr %191, align 8, !tbaa !17
  %193 = add i64 %192, 1
  %194 = mul i64 0, %193
  %195 = add i64 %190, %194
  %196 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %186, i64 noundef %195)
          to label %197 unwind label %388

197:                                              ; preds = %184
  %198 = load float, ptr %196, align 4, !tbaa !20
  %199 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %200 = load i64, ptr %9, align 8, !tbaa !9
  %201 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %202 = load i64, ptr %201, align 8, !tbaa !17
  %203 = call noundef i64 @_Z6get_idmmm(i64 noundef %200, i64 noundef 2, i64 noundef %202)
  %204 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %205 = load i64, ptr %204, align 8, !tbaa !17
  %206 = add i64 %205, 1
  %207 = mul i64 2, %206
  %208 = add i64 %203, %207
  %209 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %199, i64 noundef %208)
          to label %210 unwind label %388

210:                                              ; preds = %197
  %211 = load float, ptr %209, align 4, !tbaa !20
  %212 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %213 = load i64, ptr %9, align 8, !tbaa !9
  %214 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %215 = load i64, ptr %214, align 8, !tbaa !17
  %216 = call noundef i64 @_Z6get_idmmm(i64 noundef %213, i64 noundef 1, i64 noundef %215)
  %217 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %218 = load i64, ptr %217, align 8, !tbaa !17
  %219 = add i64 %218, 1
  %220 = mul i64 0, %219
  %221 = add i64 %216, %220
  %222 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %212, i64 noundef %221)
          to label %223 unwind label %388

223:                                              ; preds = %210
  %224 = load float, ptr %222, align 4, !tbaa !20
  %225 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %226 = load i64, ptr %9, align 8, !tbaa !9
  %227 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %228 = load i64, ptr %227, align 8, !tbaa !17
  %229 = call noundef i64 @_Z6get_idmmm(i64 noundef %226, i64 noundef 1, i64 noundef %228)
  %230 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %231 = load i64, ptr %230, align 8, !tbaa !17
  %232 = add i64 %231, 1
  %233 = mul i64 2, %232
  %234 = add i64 %229, %233
  %235 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %225, i64 noundef %234)
          to label %236 unwind label %388

236:                                              ; preds = %223
  %237 = load float, ptr %235, align 4, !tbaa !20
  %238 = call noundef float @_Z8det3_cpufffffffff(float noundef %172, float noundef 1.000000e+00, float noundef %185, float noundef %198, float noundef 1.000000e+00, float noundef %211, float noundef %224, float noundef 1.000000e+00, float noundef %237)
  %239 = fpext float %238 to double
  %240 = fmul double %158, %239
  %241 = fptrunc double %240 to float
  store float %241, ptr %12, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %242 = load i64, ptr %9, align 8, !tbaa !9
  %243 = invoke noundef double @_ZSt3powIfmEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef -1.000000e+00, i64 noundef %242)
          to label %244 unwind label %392

244:                                              ; preds = %236
  %245 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %246 = load i64, ptr %9, align 8, !tbaa !9
  %247 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %248 = load i64, ptr %247, align 8, !tbaa !17
  %249 = call noundef i64 @_Z6get_idmmm(i64 noundef %246, i64 noundef 3, i64 noundef %248)
  %250 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %251 = load i64, ptr %250, align 8, !tbaa !17
  %252 = add i64 %251, 1
  %253 = mul i64 0, %252
  %254 = add i64 %249, %253
  %255 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %245, i64 noundef %254)
          to label %256 unwind label %392

256:                                              ; preds = %244
  %257 = load float, ptr %255, align 4, !tbaa !20
  %258 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %259 = load i64, ptr %9, align 8, !tbaa !9
  %260 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %261 = load i64, ptr %260, align 8, !tbaa !17
  %262 = call noundef i64 @_Z6get_idmmm(i64 noundef %259, i64 noundef 3, i64 noundef %261)
  %263 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %264 = load i64, ptr %263, align 8, !tbaa !17
  %265 = add i64 %264, 1
  %266 = mul i64 1, %265
  %267 = add i64 %262, %266
  %268 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %258, i64 noundef %267)
          to label %269 unwind label %392

269:                                              ; preds = %256
  %270 = load float, ptr %268, align 4, !tbaa !20
  %271 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %272 = load i64, ptr %9, align 8, !tbaa !9
  %273 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %274 = load i64, ptr %273, align 8, !tbaa !17
  %275 = call noundef i64 @_Z6get_idmmm(i64 noundef %272, i64 noundef 2, i64 noundef %274)
  %276 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %277 = load i64, ptr %276, align 8, !tbaa !17
  %278 = add i64 %277, 1
  %279 = mul i64 0, %278
  %280 = add i64 %275, %279
  %281 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %271, i64 noundef %280)
          to label %282 unwind label %392

282:                                              ; preds = %269
  %283 = load float, ptr %281, align 4, !tbaa !20
  %284 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %285 = load i64, ptr %9, align 8, !tbaa !9
  %286 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %287 = load i64, ptr %286, align 8, !tbaa !17
  %288 = call noundef i64 @_Z6get_idmmm(i64 noundef %285, i64 noundef 2, i64 noundef %287)
  %289 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %290 = load i64, ptr %289, align 8, !tbaa !17
  %291 = add i64 %290, 1
  %292 = mul i64 1, %291
  %293 = add i64 %288, %292
  %294 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %284, i64 noundef %293)
          to label %295 unwind label %392

295:                                              ; preds = %282
  %296 = load float, ptr %294, align 4, !tbaa !20
  %297 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %298 = load i64, ptr %9, align 8, !tbaa !9
  %299 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %300 = load i64, ptr %299, align 8, !tbaa !17
  %301 = call noundef i64 @_Z6get_idmmm(i64 noundef %298, i64 noundef 1, i64 noundef %300)
  %302 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %303 = load i64, ptr %302, align 8, !tbaa !17
  %304 = add i64 %303, 1
  %305 = mul i64 0, %304
  %306 = add i64 %301, %305
  %307 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %297, i64 noundef %306)
          to label %308 unwind label %392

308:                                              ; preds = %295
  %309 = load float, ptr %307, align 4, !tbaa !20
  %310 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %311 = load i64, ptr %9, align 8, !tbaa !9
  %312 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %313 = load i64, ptr %312, align 8, !tbaa !17
  %314 = call noundef i64 @_Z6get_idmmm(i64 noundef %311, i64 noundef 1, i64 noundef %313)
  %315 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 1
  %316 = load i64, ptr %315, align 8, !tbaa !17
  %317 = add i64 %316, 1
  %318 = mul i64 1, %317
  %319 = add i64 %314, %318
  %320 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %310, i64 noundef %319)
          to label %321 unwind label %392

321:                                              ; preds = %308
  %322 = load float, ptr %320, align 4, !tbaa !20
  %323 = call noundef float @_Z8det3_cpufffffffff(float noundef %257, float noundef %270, float noundef 1.000000e+00, float noundef %283, float noundef %296, float noundef 1.000000e+00, float noundef %309, float noundef %322, float noundef 1.000000e+00)
  %324 = fpext float %323 to double
  %325 = fmul double %243, %324
  %326 = fptrunc double %325 to float
  store float %326, ptr %13, align 4, !tbaa !20
  %327 = load float, ptr %11, align 4, !tbaa !20
  %328 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %329 = load i64, ptr %10, align 8, !tbaa !9
  %330 = add i64 %329, 0
  %331 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %328, i64 noundef 0, i64 noundef %330)
          to label %332 unwind label %392

332:                                              ; preds = %321
  store float %327, ptr %331, align 4, !tbaa !20
  %333 = load float, ptr %11, align 4, !tbaa !20
  %334 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %335 = load i64, ptr %10, align 8, !tbaa !9
  %336 = add i64 %335, 1
  %337 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %334, i64 noundef 3, i64 noundef %336)
          to label %338 unwind label %392

338:                                              ; preds = %332
  store float %333, ptr %337, align 4, !tbaa !20
  %339 = load float, ptr %11, align 4, !tbaa !20
  %340 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %341 = load i64, ptr %10, align 8, !tbaa !9
  %342 = add i64 %341, 2
  %343 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %340, i64 noundef 5, i64 noundef %342)
          to label %344 unwind label %392

344:                                              ; preds = %338
  store float %339, ptr %343, align 4, !tbaa !20
  %345 = load float, ptr %12, align 4, !tbaa !20
  %346 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %347 = load i64, ptr %10, align 8, !tbaa !9
  %348 = add i64 %347, 0
  %349 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %346, i64 noundef 3, i64 noundef %348)
          to label %350 unwind label %392

350:                                              ; preds = %344
  store float %345, ptr %349, align 4, !tbaa !20
  %351 = load float, ptr %12, align 4, !tbaa !20
  %352 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %353 = load i64, ptr %10, align 8, !tbaa !9
  %354 = add i64 %353, 1
  %355 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %352, i64 noundef 1, i64 noundef %354)
          to label %356 unwind label %392

356:                                              ; preds = %350
  store float %351, ptr %355, align 4, !tbaa !20
  %357 = load float, ptr %12, align 4, !tbaa !20
  %358 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %359 = load i64, ptr %10, align 8, !tbaa !9
  %360 = add i64 %359, 2
  %361 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %358, i64 noundef 4, i64 noundef %360)
          to label %362 unwind label %392

362:                                              ; preds = %356
  store float %357, ptr %361, align 4, !tbaa !20
  %363 = load float, ptr %13, align 4, !tbaa !20
  %364 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %365 = load i64, ptr %10, align 8, !tbaa !9
  %366 = add i64 %365, 0
  %367 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %364, i64 noundef 5, i64 noundef %366)
          to label %368 unwind label %392

368:                                              ; preds = %362
  store float %363, ptr %367, align 4, !tbaa !20
  %369 = load float, ptr %13, align 4, !tbaa !20
  %370 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %371 = load i64, ptr %10, align 8, !tbaa !9
  %372 = add i64 %371, 1
  %373 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %370, i64 noundef 4, i64 noundef %372)
          to label %374 unwind label %392

374:                                              ; preds = %368
  store float %369, ptr %373, align 4, !tbaa !20
  %375 = load float, ptr %13, align 4, !tbaa !20
  %376 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %377 = load i64, ptr %10, align 8, !tbaa !9
  %378 = add i64 %377, 2
  %379 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %376, i64 noundef 2, i64 noundef %378)
          to label %380 unwind label %392

380:                                              ; preds = %374
  store float %375, ptr %379, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  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 8, ptr %10) #5
  br label %381

381:                                              ; preds = %380
  %382 = load i64, ptr %9, align 8, !tbaa !9
  %383 = add i64 %382, 1
  store i64 %383, ptr %9, align 8, !tbaa !9
  br label %52, !llvm.loop !22

384:                                              ; preds = %138, %125, %112, %99, %86, %74, %67
  %385 = landingpad { ptr, i32 }
          cleanup
  %386 = extractvalue { ptr, i32 } %385, 0
  store ptr %386, ptr %7, align 8
  %387 = extractvalue { ptr, i32 } %385, 1
  store i32 %387, ptr %8, align 4
  br label %397

388:                                              ; preds = %223, %210, %197, %184, %171, %159, %151
  %389 = landingpad { ptr, i32 }
          cleanup
  %390 = extractvalue { ptr, i32 } %389, 0
  store ptr %390, ptr %7, align 8
  %391 = extractvalue { ptr, i32 } %389, 1
  store i32 %391, ptr %8, align 4
  br label %396

392:                                              ; preds = %374, %368, %362, %356, %350, %344, %338, %332, %321, %308, %295, %282, %269, %256, %244, %236
  %393 = landingpad { ptr, i32 }
          cleanup
  %394 = extractvalue { ptr, i32 } %393, 0
  store ptr %394, ptr %7, align 8
  %395 = extractvalue { ptr, i32 } %393, 1
  store i32 %395, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %396

396:                                              ; preds = %392, %388
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %397

397:                                              ; preds = %396, %384
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %402

398:                                              ; preds = %58
  call void @_ZNSt10unique_ptrI6MatrixSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @_ZNSt10unique_ptrI6MatrixSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %399

399:                                              ; preds = %398
  %400 = load i64, ptr %3, align 8, !tbaa !9
  %401 = add i64 %400, 1
  store i64 %401, ptr %3, align 8, !tbaa !9
  br label %15, !llvm.loop !24

402:                                              ; preds = %397, %63
  call void @_ZNSt10unique_ptrI6MatrixSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br label %403

403:                                              ; preds = %402, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @_ZNSt10unique_ptrI6MatrixSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  br label %412

404:                                              ; preds = %20
  %405 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 22
  %406 = load ptr, ptr %405, align 8, !tbaa !16
  %407 = getelementptr inbounds %class.ElementsData, ptr %14, i32 0, i32 28
  %408 = load ptr, ptr %407, align 8, !tbaa !25
  %409 = load ptr, ptr %406, align 8, !tbaa !18
  %410 = getelementptr inbounds ptr, ptr %409, i64 4
  %411 = load ptr, ptr %410, align 8
  call void %411(ptr noundef nonnull align 8 dereferenceable(49) %406, ptr noundef nonnull align 8 dereferenceable(49) %408, i32 noundef 0)
  ret void

412:                                              ; preds = %403
  %413 = load ptr, ptr %7, align 8
  %414 = load i32, ptr %8, align 4
  %415 = insertvalue { ptr, i32 } poison, ptr %413, 0
  %416 = insertvalue { ptr, i32 } %415, i32 %414, 1
  resume { ptr, i32 } %416
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIfmEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef, i64 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = { 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 #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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 16}
!12 = !{!"_ZTS12ElementsData", !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !13, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !14, i64 256, !6, i64 312, !6, i64 320, !6, i64 328}
!13 = !{!"_ZTS11DEVICE_NAME", !7, i64 0}
!14 = !{!"_ZTS7CGMData", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!15 = !{!12, !6, i64 240}
!16 = !{!12, !6, i64 176}
!17 = !{!12, !10, i64 8}
!18 = !{!19, !19, i64 0}
!19 = !{!"vtable pointer", !8, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"float", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = !{!12, !6, i64 224}


; 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::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.7" }
%"struct.std::_Head_base.7" = type { ptr }

declare i32 @__gxx_personality_v0(...)

; 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

declare void @_ZNK6Matrix6getRowEm(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(49), i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

declare noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49), i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

declare noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49), i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16CPU_ElementsData19genGradientMatrix3DEv(ptr nocapture noundef nonnull readonly align 8 dereferenceable(336) %0) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::unique_ptr", align 8
  %3 = alloca %"class.std::unique_ptr", align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  %5 = load i64, ptr %4, align 8, !tbaa !5
  %.not = icmp eq i64 %5, 0
  br i1 %.not, label %._crit_edge62, label %.lr.ph61

.lr.ph61:                                         ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 240
  %7 = getelementptr inbounds i8, ptr %0, i64 176
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  br label %16

._crit_edge62:                                    ; preds = %._crit_edge, %1
  %9 = getelementptr inbounds i8, ptr %0, i64 176
  %10 = load ptr, ptr %9, align 8, !tbaa !13
  %11 = getelementptr inbounds i8, ptr %0, i64 224
  %12 = load ptr, ptr %11, align 8, !tbaa !14
  %13 = load ptr, ptr %10, align 8, !tbaa !15
  %14 = getelementptr inbounds i8, ptr %13, i64 32
  %15 = load ptr, ptr %14, align 8
  call void %15(ptr noundef nonnull align 8 dereferenceable(49) %10, ptr noundef nonnull align 8 dereferenceable(49) %12, i32 noundef 0)
  ret void

16:                                               ; preds = %.lr.ph61, %._crit_edge
  %.059 = phi i64 [ 0, %.lr.ph61 ], [ %36, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %17 = load ptr, ptr %6, align 8, !tbaa !17
  call void @_ZNK6Matrix6getRowEm(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %2, ptr noundef nonnull align 8 dereferenceable(49) %17, i64 noundef %.059)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %18 = load ptr, ptr %7, align 8, !tbaa !13
  invoke void @_ZNK6Matrix6getRowEm(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %3, ptr noundef nonnull align 8 dereferenceable(49) %18, i64 noundef %.059)
          to label %19 unwind label %39

19:                                               ; preds = %16
  %20 = call noundef ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %21 = load i64, ptr %8, align 8, !tbaa !18
  %22 = add i64 %21, 1
  %23 = load ptr, ptr %20, align 8, !tbaa !15
  %24 = getelementptr inbounds i8, ptr %23, i64 208
  %25 = load ptr, ptr %24, align 8
  invoke void %25(ptr noundef nonnull align 8 dereferenceable(49) %20, i64 noundef %21, i64 noundef %22)
          to label %26 unwind label %41

26:                                               ; preds = %19
  %27 = call noundef ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %28 = load i64, ptr %8, align 8, !tbaa !18
  %29 = add i64 %28, -1
  %30 = mul i64 %29, 3
  %31 = mul i64 %29, 6
  %32 = load ptr, ptr %27, align 8, !tbaa !15
  %33 = getelementptr inbounds i8, ptr %32, i64 208
  %34 = load ptr, ptr %33, align 8
  invoke void %34(ptr noundef nonnull align 8 dereferenceable(49) %27, i64 noundef %30, i64 noundef %31)
          to label %.preheader unwind label %41

.preheader:                                       ; preds = %26
  %35 = load i64, ptr %8, align 8, !tbaa !18
  %.not63 = icmp eq i64 %35, -1
  br i1 %.not63, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %238, %.preheader
  call void @_ZNSt10unique_ptrI6MatrixSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @_ZNSt10unique_ptrI6MatrixSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %36 = add nuw i64 %.059, 1
  %37 = load i64, ptr %4, align 8, !tbaa !5
  %38 = icmp ult i64 %36, %37
  br i1 %38, label %16, label %._crit_edge62, !llvm.loop !19

39:                                               ; preds = %16
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %250

41:                                               ; preds = %26, %19
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %249

.lr.ph:                                           ; preds = %.preheader, %238
  %43 = phi i64 [ %240, %238 ], [ %35, %.preheader ]
  %.05358 = phi i64 [ %239, %238 ], [ 0, %.preheader ]
  %44 = mul i64 %43, %.05358
  %45 = call noundef double @_ZSt3powIfmEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef -1.000000e+00, i64 noundef %.05358)
  %46 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %47 = load i64, ptr %8, align 8, !tbaa !18
  %48 = call noundef i64 @_Z6get_idmmm(i64 noundef %.05358, i64 noundef 3, i64 noundef %47)
  %49 = load i64, ptr %8, align 8, !tbaa !18
  %50 = add i64 %48, 1
  %51 = add i64 %50, %49
  %52 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %46, i64 noundef %51)
          to label %53 unwind label %243

53:                                               ; preds = %.lr.ph
  %54 = load float, ptr %52, align 4, !tbaa !21
  %55 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %56 = load i64, ptr %8, align 8, !tbaa !18
  %57 = call noundef i64 @_Z6get_idmmm(i64 noundef %.05358, i64 noundef 3, i64 noundef %56)
  %58 = load i64, ptr %8, align 8, !tbaa !18
  %59 = shl i64 %58, 1
  %60 = add i64 %57, 2
  %61 = add i64 %60, %59
  %62 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %55, i64 noundef %61)
          to label %63 unwind label %243

63:                                               ; preds = %53
  %64 = load float, ptr %62, align 4, !tbaa !21
  %65 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %66 = load i64, ptr %8, align 8, !tbaa !18
  %67 = call noundef i64 @_Z6get_idmmm(i64 noundef %.05358, i64 noundef 2, i64 noundef %66)
  %68 = load i64, ptr %8, align 8, !tbaa !18
  %69 = add i64 %67, 1
  %70 = add i64 %69, %68
  %71 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %65, i64 noundef %70)
          to label %72 unwind label %243

72:                                               ; preds = %63
  %73 = load float, ptr %71, align 4, !tbaa !21
  %74 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %75 = load i64, ptr %8, align 8, !tbaa !18
  %76 = call noundef i64 @_Z6get_idmmm(i64 noundef %.05358, i64 noundef 2, i64 noundef %75)
  %77 = load i64, ptr %8, align 8, !tbaa !18
  %78 = shl i64 %77, 1
  %79 = add i64 %76, 2
  %80 = add i64 %79, %78
  %81 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %74, i64 noundef %80)
          to label %82 unwind label %243

82:                                               ; preds = %72
  %83 = load float, ptr %81, align 4, !tbaa !21
  %84 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %85 = load i64, ptr %8, align 8, !tbaa !18
  %86 = call noundef i64 @_Z6get_idmmm(i64 noundef %.05358, i64 noundef 1, i64 noundef %85)
  %87 = load i64, ptr %8, align 8, !tbaa !18
  %88 = add i64 %86, 1
  %89 = add i64 %88, %87
  %90 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %84, i64 noundef %89)
          to label %91 unwind label %243

91:                                               ; preds = %82
  %92 = load float, ptr %90, align 4, !tbaa !21
  %93 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %94 = load i64, ptr %8, align 8, !tbaa !18
  %95 = call noundef i64 @_Z6get_idmmm(i64 noundef %.05358, i64 noundef 1, i64 noundef %94)
  %96 = load i64, ptr %8, align 8, !tbaa !18
  %97 = shl i64 %96, 1
  %98 = add i64 %95, 2
  %99 = add i64 %98, %97
  %100 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %93, i64 noundef %99)
          to label %101 unwind label %243

101:                                              ; preds = %91
  %102 = load float, ptr %100, align 4, !tbaa !21
  %103 = call noundef float @_Z8det3_cpufffffffff(float noundef 1.000000e+00, float noundef %54, float noundef %64, float noundef 1.000000e+00, float noundef %73, float noundef %83, float noundef 1.000000e+00, float noundef %92, float noundef %102)
  %104 = fpext float %103 to double
  %105 = fmul double %45, %104
  %106 = fptrunc double %105 to float
  %107 = call noundef double @_ZSt3powIfmEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef -1.000000e+00, i64 noundef %.05358)
  %108 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %109 = load i64, ptr %8, align 8, !tbaa !18
  %110 = call noundef i64 @_Z6get_idmmm(i64 noundef %.05358, i64 noundef 3, i64 noundef %109)
  %111 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %108, i64 noundef %110)
          to label %112 unwind label %245

112:                                              ; preds = %101
  %113 = load float, ptr %111, align 4, !tbaa !21
  %114 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %115 = load i64, ptr %8, align 8, !tbaa !18
  %116 = call noundef i64 @_Z6get_idmmm(i64 noundef %.05358, i64 noundef 3, i64 noundef %115)
  %117 = load i64, ptr %8, align 8, !tbaa !18
  %118 = shl i64 %117, 1
  %119 = add i64 %116, 2
  %120 = add i64 %119, %118
  %121 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %114, i64 noundef %120)
          to label %122 unwind label %245

122:                                              ; preds = %112
  %123 = load float, ptr %121, align 4, !tbaa !21
  %124 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %125 = load i64, ptr %8, align 8, !tbaa !18
  %126 = call noundef i64 @_Z6get_idmmm(i64 noundef %.05358, i64 noundef 2, i64 noundef %125)
  %127 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %124, i64 noundef %126)
          to label %128 unwind label %245

128:                                              ; preds = %122
  %129 = load float, ptr %127, align 4, !tbaa !21
  %130 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %131 = load i64, ptr %8, align 8, !tbaa !18
  %132 = call noundef i64 @_Z6get_idmmm(i64 noundef %.05358, i64 noundef 2, i64 noundef %131)
  %133 = load i64, ptr %8, align 8, !tbaa !18
  %134 = shl i64 %133, 1
  %135 = add i64 %132, 2
  %136 = add i64 %135, %134
  %137 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %130, i64 noundef %136)
          to label %138 unwind label %245

138:                                              ; preds = %128
  %139 = load float, ptr %137, align 4, !tbaa !21
  %140 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %141 = load i64, ptr %8, align 8, !tbaa !18
  %142 = call noundef i64 @_Z6get_idmmm(i64 noundef %.05358, i64 noundef 1, i64 noundef %141)
  %143 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %140, i64 noundef %142)
          to label %144 unwind label %245

144:                                              ; preds = %138
  %145 = load float, ptr %143, align 4, !tbaa !21
  %146 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %147 = load i64, ptr %8, align 8, !tbaa !18
  %148 = call noundef i64 @_Z6get_idmmm(i64 noundef %.05358, i64 noundef 1, i64 noundef %147)
  %149 = load i64, ptr %8, align 8, !tbaa !18
  %150 = shl i64 %149, 1
  %151 = add i64 %148, 2
  %152 = add i64 %151, %150
  %153 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %146, i64 noundef %152)
          to label %154 unwind label %245

154:                                              ; preds = %144
  %155 = load float, ptr %153, align 4, !tbaa !21
  %156 = call noundef float @_Z8det3_cpufffffffff(float noundef %113, float noundef 1.000000e+00, float noundef %123, float noundef %129, float noundef 1.000000e+00, float noundef %139, float noundef %145, float noundef 1.000000e+00, float noundef %155)
  %157 = fpext float %156 to double
  %158 = fmul double %107, %157
  %159 = fptrunc double %158 to float
  %160 = call noundef double @_ZSt3powIfmEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef -1.000000e+00, i64 noundef %.05358)
  %161 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %162 = load i64, ptr %8, align 8, !tbaa !18
  %163 = call noundef i64 @_Z6get_idmmm(i64 noundef %.05358, i64 noundef 3, i64 noundef %162)
  %164 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %161, i64 noundef %163)
          to label %165 unwind label %247

165:                                              ; preds = %154
  %166 = load float, ptr %164, align 4, !tbaa !21
  %167 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %168 = load i64, ptr %8, align 8, !tbaa !18
  %169 = call noundef i64 @_Z6get_idmmm(i64 noundef %.05358, i64 noundef 3, i64 noundef %168)
  %170 = load i64, ptr %8, align 8, !tbaa !18
  %171 = add i64 %169, 1
  %172 = add i64 %171, %170
  %173 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %167, i64 noundef %172)
          to label %174 unwind label %247

174:                                              ; preds = %165
  %175 = load float, ptr %173, align 4, !tbaa !21
  %176 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %177 = load i64, ptr %8, align 8, !tbaa !18
  %178 = call noundef i64 @_Z6get_idmmm(i64 noundef %.05358, i64 noundef 2, i64 noundef %177)
  %179 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %176, i64 noundef %178)
          to label %180 unwind label %247

180:                                              ; preds = %174
  %181 = load float, ptr %179, align 4, !tbaa !21
  %182 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %183 = load i64, ptr %8, align 8, !tbaa !18
  %184 = call noundef i64 @_Z6get_idmmm(i64 noundef %.05358, i64 noundef 2, i64 noundef %183)
  %185 = load i64, ptr %8, align 8, !tbaa !18
  %186 = add i64 %184, 1
  %187 = add i64 %186, %185
  %188 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %182, i64 noundef %187)
          to label %189 unwind label %247

189:                                              ; preds = %180
  %190 = load float, ptr %188, align 4, !tbaa !21
  %191 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %192 = load i64, ptr %8, align 8, !tbaa !18
  %193 = call noundef i64 @_Z6get_idmmm(i64 noundef %.05358, i64 noundef 1, i64 noundef %192)
  %194 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %191, i64 noundef %193)
          to label %195 unwind label %247

195:                                              ; preds = %189
  %196 = load float, ptr %194, align 4, !tbaa !21
  %197 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %198 = load i64, ptr %8, align 8, !tbaa !18
  %199 = call noundef i64 @_Z6get_idmmm(i64 noundef %.05358, i64 noundef 1, i64 noundef %198)
  %200 = load i64, ptr %8, align 8, !tbaa !18
  %201 = add i64 %199, 1
  %202 = add i64 %201, %200
  %203 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixixEm(ptr noundef nonnull align 8 dereferenceable(49) %197, i64 noundef %202)
          to label %204 unwind label %247

204:                                              ; preds = %195
  %205 = load float, ptr %203, align 4, !tbaa !21
  %206 = call noundef float @_Z8det3_cpufffffffff(float noundef %166, float noundef %175, float noundef 1.000000e+00, float noundef %181, float noundef %190, float noundef 1.000000e+00, float noundef %196, float noundef %205, float noundef 1.000000e+00)
  %207 = fpext float %206 to double
  %208 = fmul double %160, %207
  %209 = fptrunc double %208 to float
  %210 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %211 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %210, i64 noundef 0, i64 noundef %44)
          to label %212 unwind label %247

212:                                              ; preds = %204
  store float %106, ptr %211, align 4, !tbaa !21
  %213 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %214 = add i64 %44, 1
  %215 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %213, i64 noundef 3, i64 noundef %214)
          to label %216 unwind label %247

216:                                              ; preds = %212
  store float %106, ptr %215, align 4, !tbaa !21
  %217 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %218 = add i64 %44, 2
  %219 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %217, i64 noundef 5, i64 noundef %218)
          to label %220 unwind label %247

220:                                              ; preds = %216
  store float %106, ptr %219, align 4, !tbaa !21
  %221 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %222 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %221, i64 noundef 3, i64 noundef %44)
          to label %223 unwind label %247

223:                                              ; preds = %220
  store float %159, ptr %222, align 4, !tbaa !21
  %224 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %225 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %224, i64 noundef 1, i64 noundef %214)
          to label %226 unwind label %247

226:                                              ; preds = %223
  store float %159, ptr %225, align 4, !tbaa !21
  %227 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %228 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %227, i64 noundef 4, i64 noundef %218)
          to label %229 unwind label %247

229:                                              ; preds = %226
  store float %159, ptr %228, align 4, !tbaa !21
  %230 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %231 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %230, i64 noundef 5, i64 noundef %44)
          to label %232 unwind label %247

232:                                              ; preds = %229
  store float %209, ptr %231, align 4, !tbaa !21
  %233 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %234 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %233, i64 noundef 4, i64 noundef %214)
          to label %235 unwind label %247

235:                                              ; preds = %232
  store float %209, ptr %234, align 4, !tbaa !21
  %236 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZNKSt10unique_ptrI6MatrixSt14default_deleteIS0_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %237 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(49) %236, i64 noundef 2, i64 noundef %218)
          to label %238 unwind label %247

238:                                              ; preds = %235
  store float %209, ptr %237, align 4, !tbaa !21
  %239 = add nuw i64 %.05358, 1
  %240 = load i64, ptr %8, align 8, !tbaa !18
  %241 = add i64 %240, 1
  %242 = icmp ult i64 %239, %241
  br i1 %242, label %.lr.ph, label %._crit_edge, !llvm.loop !23

243:                                              ; preds = %91, %82, %72, %63, %53, %.lr.ph
  %244 = landingpad { ptr, i32 }
          cleanup
  br label %249

245:                                              ; preds = %144, %138, %128, %122, %112, %101
  %246 = landingpad { ptr, i32 }
          cleanup
  br label %249

247:                                              ; preds = %235, %232, %229, %226, %223, %220, %216, %212, %204, %195, %189, %180, %174, %165, %154
  %248 = landingpad { ptr, i32 }
          cleanup
  br label %249

249:                                              ; preds = %243, %247, %245, %41
  %.pn.pn.pn = phi { ptr, i32 } [ %42, %41 ], [ %244, %243 ], [ %248, %247 ], [ %246, %245 ]
  call void @_ZNSt10unique_ptrI6MatrixSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  br label %250

250:                                              ; preds = %249, %39
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %249 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @_ZNSt10unique_ptrI6MatrixSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIfmEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef, i64 noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = { 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 #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, !7, i64 16}
!6 = !{!"_ZTS12ElementsData", !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !11, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !11, i64 248, !12, i64 256, !11, i64 312, !11, i64 320, !11, i64 328}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS11DEVICE_NAME", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"_ZTS7CGMData", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48}
!13 = !{!6, !11, i64 176}
!14 = !{!6, !11, i64 224}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !9, i64 0}
!17 = !{!6, !11, i64 240}
!18 = !{!6, !7, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !22, i64 0}
!22 = !{!"float", !8, i64 0}
!23 = distinct !{!23, !20}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass