; LLVM IR from moarseniy/CudaFEMproject :: FEMproject/femfunc/src (femfunc)

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

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 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

declare noundef ptr @_ZNK12ElementsData11get_KlocalsEv(ptr noundef nonnull align 8 dereferenceable(336)) #1

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

declare noundef ptr @_ZNK12ElementsData9get_diagKEv(ptr noundef nonnull align 8 dereferenceable(336)) #1

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

declare void @_ZNK6Matrix4copyERS_(ptr noundef nonnull align 8 dereferenceable(49), ptr noundef nonnull align 8 dereferenceable(49)) #1

declare noundef ptr @_ZNK12ElementsData5get_rEv(ptr noundef nonnull align 8 dereferenceable(336)) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z14gpuPCG_EbE_vecR6Matrix11DEVICE_NAMER10dataKeeperR12ElementsDatabfb(ptr noundef nonnull align 8 dereferenceable(49) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(3168) %2, ptr noundef nonnull align 8 dereferenceable(336) %3, i1 noundef zeroext %4, float noundef %5, i1 noundef zeroext %6) #3 {
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca float, align 4
  %14 = alloca i8, align 1
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca i32, align 4
  %30 = alloca float, align 4
  %31 = alloca float, align 4
  %32 = alloca i32, align 4
  %33 = alloca ptr, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  %34 = zext i1 %4 to i8
  store i8 %34, ptr %12, align 1, !tbaa !11
  store float %5, ptr %13, align 4, !tbaa !13
  %35 = zext i1 %6 to i8
  store i8 %35, ptr %14, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = call noundef i64 @_ZNK10dataKeeper17get_elementsCountEv(ptr noundef nonnull align 8 dereferenceable(3168) %36)
  store i64 %37, ptr %15, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = call noundef i64 @_ZNK10dataKeeper7get_dimEv(ptr noundef nonnull align 8 dereferenceable(3168) %38)
  store i64 %39, ptr %16, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = call noundef i64 @_ZNK10dataKeeper14get_nodesCountEv(ptr noundef nonnull align 8 dereferenceable(3168) %40)
  %42 = load i64, ptr %16, align 8, !tbaa !15
  %43 = mul i64 %41, %42
  store i64 %43, ptr %17, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %44 = load i64, ptr %16, align 8, !tbaa !15
  %45 = sub i64 %44, 1
  %46 = mul i64 6, %45
  %47 = load i64, ptr %15, align 8, !tbaa !15
  %48 = mul i64 %46, %47
  %49 = trunc i64 %48 to i32
  store i32 %49, ptr %18, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = call noundef ptr @_ZNK12ElementsData5get_rEv(ptr noundef nonnull align 8 dereferenceable(336) %50)
  store ptr %51, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = call noundef ptr @_ZNK12ElementsData5get_mEv(ptr noundef nonnull align 8 dereferenceable(336) %52)
  store ptr %53, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = call noundef ptr @_ZNK12ElementsData5get_zEv(ptr noundef nonnull align 8 dereferenceable(336) %54)
  store ptr %55, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = call noundef ptr @_ZNK12ElementsData5get_sEv(ptr noundef nonnull align 8 dereferenceable(336) %56)
  store ptr %57, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %58 = load ptr, ptr %11, align 8, !tbaa !5
  %59 = call noundef ptr @_ZNK12ElementsData5get_pEv(ptr noundef nonnull align 8 dereferenceable(336) %58)
  store ptr %59, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = call noundef ptr @_ZNK12ElementsData5get_uEv(ptr noundef nonnull align 8 dereferenceable(336) %60)
  store ptr %61, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = call noundef ptr @_ZNK12ElementsData5get_xEv(ptr noundef nonnull align 8 dereferenceable(336) %62)
  store ptr %63, ptr %25, align 8, !tbaa !5
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = call noundef ptr @_ZNK12ElementsData9get_diagKEv(ptr noundef nonnull align 8 dereferenceable(336) %65)
  %67 = load ptr, ptr %20, align 8, !tbaa !5
  %68 = load i64, ptr %17, align 8, !tbaa !15
  %69 = load ptr, ptr %64, align 8, !tbaa !19
  %70 = getelementptr inbounds ptr, ptr %69, i64 5
  %71 = load ptr, ptr %70, align 8
  call void %71(ptr noundef nonnull align 8 dereferenceable(336) %64, ptr noundef nonnull align 8 dereferenceable(49) %66, ptr noundef nonnull align 8 dereferenceable(49) %67, i64 noundef %68)
  %72 = load ptr, ptr %19, align 8, !tbaa !5
  %73 = load ptr, ptr %20, align 8, !tbaa !5
  %74 = load ptr, ptr %21, align 8, !tbaa !5
  %75 = load ptr, ptr %72, align 8, !tbaa !19
  %76 = getelementptr inbounds ptr, ptr %75, i64 5
  %77 = load ptr, ptr %76, align 8
  call void %77(ptr noundef nonnull align 8 dereferenceable(49) %72, ptr noundef nonnull align 8 dereferenceable(49) %73, ptr noundef nonnull align 8 dereferenceable(49) %74)
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = load ptr, ptr %21, align 8, !tbaa !5
  %80 = load ptr, ptr %22, align 8, !tbaa !5
  %81 = load i64, ptr %17, align 8, !tbaa !15
  %82 = load ptr, ptr %78, align 8, !tbaa !19
  %83 = getelementptr inbounds ptr, ptr %82, i64 5
  %84 = load ptr, ptr %83, align 8
  call void %84(ptr noundef nonnull align 8 dereferenceable(336) %78, ptr noundef nonnull align 8 dereferenceable(49) %79, ptr noundef nonnull align 8 dereferenceable(49) %80, i64 noundef %81)
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %85 = load ptr, ptr %19, align 8, !tbaa !5
  %86 = load ptr, ptr %22, align 8, !tbaa !5
  %87 = load ptr, ptr %85, align 8, !tbaa !19
  %88 = getelementptr inbounds ptr, ptr %87, i64 10
  %89 = load ptr, ptr %88, align 8
  %90 = call noundef float %89(ptr noundef nonnull align 8 dereferenceable(49) %85, ptr noundef nonnull align 8 dereferenceable(49) %86)
  store float %90, ptr %26, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %91 = load float, ptr %26, align 4, !tbaa !13
  store float %91, ptr %27, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  store float 0.000000e+00, ptr %28, align 4, !tbaa !13
  %92 = load ptr, ptr %22, align 8, !tbaa !5
  %93 = load ptr, ptr %23, align 8, !tbaa !5
  call void @_ZNK6Matrix4copyERS_(ptr noundef nonnull align 8 dereferenceable(49) %92, ptr noundef nonnull align 8 dereferenceable(49) %93)
  %94 = load i8, ptr %14, align 1, !tbaa !11, !range !21, !noundef !22
  %95 = trunc i8 %94 to i1
  br i1 %95, label %96, label %102

96:                                               ; preds = %7
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %98 = load float, ptr %26, align 4, !tbaa !13
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %97, float noundef %98)
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %99, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %102

102:                                              ; preds = %96, %7
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store i32 0, ptr %29, align 4, !tbaa !17
  br label %103

103:                                              ; preds = %224, %102
  %104 = load i32, ptr %29, align 4, !tbaa !17
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %29, align 4, !tbaa !17
  %106 = load i8, ptr %14, align 1, !tbaa !11, !range !21, !noundef !22
  %107 = trunc i8 %106 to i1
  br i1 %107, label %108, label %113

108:                                              ; preds = %103
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %110 = load i32, ptr %29, align 4, !tbaa !17
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %109, i32 noundef %110)
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %111, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %113

113:                                              ; preds = %108, %103
  %114 = load ptr, ptr %24, align 8, !tbaa !5
  %115 = load ptr, ptr %23, align 8, !tbaa !5
  %116 = load i64, ptr %16, align 8, !tbaa !15
  %117 = sub i64 %116, 1
  %118 = mul i64 6, %117
  %119 = load ptr, ptr %11, align 8, !tbaa !5
  %120 = call noundef ptr @_ZNK12ElementsData11get_KlocalsEv(ptr noundef nonnull align 8 dereferenceable(336) %119)
  %121 = load i64, ptr %16, align 8, !tbaa !15
  %122 = sub i64 %121, 1
  %123 = mul i64 6, %122
  %124 = load i64, ptr %15, align 8, !tbaa !15
  %125 = load ptr, ptr %114, align 8, !tbaa !19
  %126 = getelementptr inbounds ptr, ptr %125, i64 3
  %127 = load ptr, ptr %126, align 8
  call void %127(ptr noundef nonnull align 8 dereferenceable(49) %114, ptr noundef nonnull align 8 dereferenceable(49) %115, i64 noundef 1, i64 noundef %118, i1 noundef zeroext true, ptr noundef nonnull align 8 dereferenceable(49) %120, i64 noundef %123, i1 noundef zeroext false, i64 noundef %124, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %128 = load ptr, ptr %23, align 8, !tbaa !5
  %129 = load ptr, ptr %24, align 8, !tbaa !5
  %130 = load ptr, ptr %128, align 8, !tbaa !19
  %131 = getelementptr inbounds ptr, ptr %130, i64 10
  %132 = load ptr, ptr %131, align 8
  %133 = call noundef float %132(ptr noundef nonnull align 8 dereferenceable(49) %128, ptr noundef nonnull align 8 dereferenceable(49) %129)
  store float %133, ptr %30, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %134 = load float, ptr %27, align 4, !tbaa !13
  %135 = load float, ptr %30, align 4, !tbaa !13
  %136 = fdiv float %134, %135
  store float %136, ptr %31, align 4, !tbaa !13
  %137 = load ptr, ptr %25, align 8, !tbaa !5
  %138 = load ptr, ptr %23, align 8, !tbaa !5
  %139 = load float, ptr %31, align 4, !tbaa !13
  %140 = load ptr, ptr %137, align 8, !tbaa !19
  %141 = getelementptr inbounds ptr, ptr %140, i64 20
  %142 = load ptr, ptr %141, align 8
  call void %142(ptr noundef nonnull align 8 dereferenceable(49) %137, ptr noundef nonnull align 8 dereferenceable(49) %138, float noundef 1.000000e+00, float noundef %139)
  %143 = load ptr, ptr %19, align 8, !tbaa !5
  %144 = load ptr, ptr %24, align 8, !tbaa !5
  %145 = load float, ptr %31, align 4, !tbaa !13
  %146 = fmul float -1.000000e+00, %145
  %147 = load ptr, ptr %143, align 8, !tbaa !19
  %148 = getelementptr inbounds ptr, ptr %147, i64 20
  %149 = load ptr, ptr %148, align 8
  call void %149(ptr noundef nonnull align 8 dereferenceable(49) %143, ptr noundef nonnull align 8 dereferenceable(49) %144, float noundef 1.000000e+00, float noundef %146)
  %150 = load ptr, ptr %19, align 8, !tbaa !5
  %151 = load ptr, ptr %20, align 8, !tbaa !5
  %152 = load ptr, ptr %21, align 8, !tbaa !5
  %153 = load ptr, ptr %150, align 8, !tbaa !19
  %154 = getelementptr inbounds ptr, ptr %153, i64 5
  %155 = load ptr, ptr %154, align 8
  call void %155(ptr noundef nonnull align 8 dereferenceable(49) %150, ptr noundef nonnull align 8 dereferenceable(49) %151, ptr noundef nonnull align 8 dereferenceable(49) %152)
  %156 = load ptr, ptr %11, align 8, !tbaa !5
  %157 = load ptr, ptr %21, align 8, !tbaa !5
  %158 = load ptr, ptr %22, align 8, !tbaa !5
  %159 = load i64, ptr %17, align 8, !tbaa !15
  %160 = load ptr, ptr %156, align 8, !tbaa !19
  %161 = getelementptr inbounds ptr, ptr %160, i64 5
  %162 = load ptr, ptr %161, align 8
  call void %162(ptr noundef nonnull align 8 dereferenceable(336) %156, ptr noundef nonnull align 8 dereferenceable(49) %157, ptr noundef nonnull align 8 dereferenceable(49) %158, i64 noundef %159)
  %163 = load ptr, ptr %19, align 8, !tbaa !5
  %164 = load ptr, ptr %22, align 8, !tbaa !5
  %165 = load ptr, ptr %163, align 8, !tbaa !19
  %166 = getelementptr inbounds ptr, ptr %165, i64 10
  %167 = load ptr, ptr %166, align 8
  %168 = call noundef float %167(ptr noundef nonnull align 8 dereferenceable(49) %163, ptr noundef nonnull align 8 dereferenceable(49) %164)
  store float %168, ptr %28, align 4, !tbaa !13
  %169 = load i8, ptr %14, align 1, !tbaa !11, !range !21, !noundef !22
  %170 = trunc i8 %169 to i1
  br i1 %170, label %171, label %184

171:                                              ; preds = %113
  %172 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  %173 = load float, ptr %31, align 4, !tbaa !13
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %172, float noundef %173)
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %174, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
  %177 = load float, ptr %27, align 4, !tbaa !13
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %176, float noundef %177)
  %179 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %178, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %180 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  %181 = load float, ptr %30, align 4, !tbaa !13
  %182 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %180, float noundef %181)
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %182, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %184

184:                                              ; preds = %171, %113
  %185 = load float, ptr %28, align 4, !tbaa !13
  %186 = load float, ptr %13, align 4, !tbaa !13
  %187 = load float, ptr %26, align 4, !tbaa !13
  %188 = fmul float %186, %187
  %189 = fcmp olt float %185, %188
  br i1 %189, label %190, label %191

190:                                              ; preds = %184
  store i32 2, ptr %32, align 4
  br label %221

191:                                              ; preds = %184
  %192 = load ptr, ptr %23, align 8, !tbaa !5
  %193 = load ptr, ptr %22, align 8, !tbaa !5
  %194 = load float, ptr %28, align 4, !tbaa !13
  %195 = load float, ptr %27, align 4, !tbaa !13
  %196 = fdiv float %194, %195
  %197 = load ptr, ptr %192, align 8, !tbaa !19
  %198 = getelementptr inbounds ptr, ptr %197, i64 20
  %199 = load ptr, ptr %198, align 8
  call void %199(ptr noundef nonnull align 8 dereferenceable(49) %192, ptr noundef nonnull align 8 dereferenceable(49) %193, float noundef %196, float noundef 1.000000e+00)
  %200 = load i8, ptr %14, align 1, !tbaa !11, !range !21, !noundef !22
  %201 = trunc i8 %200 to i1
  br i1 %201, label %202, label %214

202:                                              ; preds = %191
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
  %204 = load float, ptr %28, align 4, !tbaa !13
  %205 = load float, ptr %27, align 4, !tbaa !13
  %206 = fdiv float %204, %205
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %203, float noundef %206)
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %207, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %209 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
  %210 = load float, ptr %28, align 4, !tbaa !13
  %211 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %209, float noundef %210)
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %211, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %213 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %214

214:                                              ; preds = %202, %191
  %215 = load float, ptr %28, align 4, !tbaa !13
  store float %215, ptr %27, align 4, !tbaa !13
  %216 = load float, ptr %27, align 4, !tbaa !13
  %217 = call noundef zeroext i1 @_ZSt8isfinitef(float noundef %216)
  br i1 %217, label %220, label %218

218:                                              ; preds = %214
  %219 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
  call void @exit(i32 noundef -1) #7
  unreachable

220:                                              ; preds = %214
  store i32 0, ptr %32, align 4
  br label %221

221:                                              ; preds = %220, %190
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  %222 = load i32, ptr %32, align 4
  switch i32 %222, label %261 [
    i32 0, label %223
    i32 2, label %225
  ]

223:                                              ; preds = %221
  br label %224

224:                                              ; preds = %223
  br i1 true, label %103, label %225, !llvm.loop !23

225:                                              ; preds = %224, %221
  %226 = load i8, ptr %12, align 1, !tbaa !11, !range !21, !noundef !22
  %227 = trunc i8 %226 to i1
  br i1 %227, label %228, label %257

228:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %229 = load ptr, ptr %11, align 8, !tbaa !5
  %230 = call noundef i32 @_ZNK12ElementsData10get_deviceEv(ptr noundef nonnull align 8 dereferenceable(336) %229)
  %231 = load ptr, ptr %10, align 8, !tbaa !5
  %232 = call noundef i64 @_ZNK10dataKeeper14get_nodesCountEv(ptr noundef nonnull align 8 dereferenceable(3168) %231)
  %233 = load i64, ptr %16, align 8, !tbaa !15
  %234 = call noundef ptr @_ZN6Matrix9setMatrixE11DEVICE_NAMEmm(i32 noundef %230, i64 noundef %232, i64 noundef %233)
  store ptr %234, ptr %33, align 8, !tbaa !5
  %235 = load ptr, ptr %11, align 8, !tbaa !5
  %236 = load ptr, ptr %25, align 8, !tbaa !5
  %237 = load ptr, ptr %33, align 8, !tbaa !5
  %238 = load ptr, ptr %235, align 8, !tbaa !19
  %239 = getelementptr inbounds ptr, ptr %238, i64 4
  %240 = load ptr, ptr %239, align 8
  call void %240(ptr noundef nonnull align 8 dereferenceable(336) %235, ptr noundef nonnull align 8 dereferenceable(49) %236, ptr noundef nonnull align 8 dereferenceable(49) %237)
  %241 = load ptr, ptr %33, align 8, !tbaa !5
  %242 = load ptr, ptr %11, align 8, !tbaa !5
  %243 = call noundef ptr @_ZNK12ElementsData15get_adjElementsEv(ptr noundef nonnull align 8 dereferenceable(336) %242)
  %244 = load ptr, ptr %33, align 8, !tbaa !5
  %245 = load ptr, ptr %241, align 8, !tbaa !19
  %246 = getelementptr inbounds ptr, ptr %245, i64 5
  %247 = load ptr, ptr %246, align 8
  call void %247(ptr noundef nonnull align 8 dereferenceable(49) %241, ptr noundef nonnull align 8 dereferenceable(49) %243, ptr noundef nonnull align 8 dereferenceable(49) %244)
  %248 = load ptr, ptr %33, align 8, !tbaa !5
  %249 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK6Matrix4copyERS_(ptr noundef nonnull align 8 dereferenceable(49) %248, ptr noundef nonnull align 8 dereferenceable(49) %249)
  %250 = load ptr, ptr %33, align 8, !tbaa !5
  %251 = icmp eq ptr %250, null
  br i1 %251, label %256, label %252

252:                                              ; preds = %228
  %253 = load ptr, ptr %250, align 8, !tbaa !19
  %254 = getelementptr inbounds ptr, ptr %253, i64 1
  %255 = load ptr, ptr %254, align 8
  call void %255(ptr noundef nonnull align 8 dereferenceable(49) %250) #6
  br label %256

256:                                              ; preds = %252, %228
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %260

257:                                              ; preds = %225
  %258 = load ptr, ptr %25, align 8, !tbaa !5
  %259 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK6Matrix4copyERS_(ptr noundef nonnull align 8 dereferenceable(49) %258, ptr noundef nonnull align 8 dereferenceable(49) %259)
  br label %260

260:                                              ; preds = %257, %256
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  ret void

261:                                              ; preds = %221
  unreachable
}

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

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

declare noundef ptr @_ZNK12ElementsData5get_mEv(ptr noundef nonnull align 8 dereferenceable(336)) #1

declare noundef ptr @_ZNK12ElementsData5get_zEv(ptr noundef nonnull align 8 dereferenceable(336)) #1

declare noundef ptr @_ZNK12ElementsData5get_sEv(ptr noundef nonnull align 8 dereferenceable(336)) #1

declare noundef ptr @_ZNK12ElementsData5get_pEv(ptr noundef nonnull align 8 dereferenceable(336)) #1

declare noundef ptr @_ZNK12ElementsData5get_uEv(ptr noundef nonnull align 8 dereferenceable(336)) #1

declare noundef ptr @_ZNK12ElementsData5get_xEv(ptr noundef nonnull align 8 dereferenceable(336)) #1

; 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) #4

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt8isfinitef(float noundef) #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

declare noundef ptr @_ZN6Matrix9setMatrixE11DEVICE_NAMEmm(i32 noundef, i64 noundef, i64 noundef) #1

declare noundef i32 @_ZNK12ElementsData10get_deviceEv(ptr noundef nonnull align 8 dereferenceable(336)) #1

declare noundef ptr @_ZNK12ElementsData15get_adjElementsEv(ptr noundef nonnull align 8 dereferenceable(336)) #1

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 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn 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 = !{!"_ZTS11DEVICE_NAME", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"vtable pointer", !8, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = distinct !{!23, !24}
!24 = !{!"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 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1

declare noundef ptr @_ZNK12ElementsData11get_KlocalsEv(ptr noundef nonnull align 8 dereferenceable(336)) local_unnamed_addr #0

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

declare noundef ptr @_ZNK12ElementsData9get_diagKEv(ptr noundef nonnull align 8 dereferenceable(336)) local_unnamed_addr #0

declare void @_ZNK6Matrix4copyERS_(ptr noundef nonnull align 8 dereferenceable(49), ptr noundef nonnull align 8 dereferenceable(49)) local_unnamed_addr #0

declare noundef ptr @_ZNK12ElementsData5get_rEv(ptr noundef nonnull align 8 dereferenceable(336)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z14gpuPCG_EbE_vecR6Matrix11DEVICE_NAMER10dataKeeperR12ElementsDatabfb(ptr noundef nonnull align 8 dereferenceable(49) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(3168) %2, ptr noundef nonnull align 8 dereferenceable(336) %3, i1 noundef zeroext %4, float noundef %5, i1 noundef zeroext %6) local_unnamed_addr #2 {
  %8 = tail call noundef i64 @_ZNK10dataKeeper17get_elementsCountEv(ptr noundef nonnull align 8 dereferenceable(3168) %2)
  %9 = tail call noundef i64 @_ZNK10dataKeeper7get_dimEv(ptr noundef nonnull align 8 dereferenceable(3168) %2)
  %10 = tail call noundef i64 @_ZNK10dataKeeper14get_nodesCountEv(ptr noundef nonnull align 8 dereferenceable(3168) %2)
  %11 = mul i64 %10, %9
  %12 = mul i64 %9, 6
  %13 = add i64 %12, -6
  %14 = tail call noundef ptr @_ZNK12ElementsData5get_rEv(ptr noundef nonnull align 8 dereferenceable(336) %3)
  %15 = tail call noundef ptr @_ZNK12ElementsData5get_mEv(ptr noundef nonnull align 8 dereferenceable(336) %3)
  %16 = tail call noundef ptr @_ZNK12ElementsData5get_zEv(ptr noundef nonnull align 8 dereferenceable(336) %3)
  %17 = tail call noundef ptr @_ZNK12ElementsData5get_sEv(ptr noundef nonnull align 8 dereferenceable(336) %3)
  %18 = tail call noundef ptr @_ZNK12ElementsData5get_pEv(ptr noundef nonnull align 8 dereferenceable(336) %3)
  %19 = tail call noundef ptr @_ZNK12ElementsData5get_uEv(ptr noundef nonnull align 8 dereferenceable(336) %3)
  %20 = tail call noundef ptr @_ZNK12ElementsData5get_xEv(ptr noundef nonnull align 8 dereferenceable(336) %3)
  %21 = tail call noundef ptr @_ZNK12ElementsData9get_diagKEv(ptr noundef nonnull align 8 dereferenceable(336) %3)
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i64 40
  %24 = load ptr, ptr %23, align 8
  tail call void %24(ptr noundef nonnull align 8 dereferenceable(336) %3, ptr noundef nonnull align 8 dereferenceable(49) %21, ptr noundef nonnull align 8 dereferenceable(49) %15, i64 noundef %11)
  %25 = load ptr, ptr %14, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %25, i64 40
  %27 = load ptr, ptr %26, align 8
  tail call void %27(ptr noundef nonnull align 8 dereferenceable(49) %14, ptr noundef nonnull align 8 dereferenceable(49) %15, ptr noundef nonnull align 8 dereferenceable(49) %16)
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %28, i64 40
  %30 = load ptr, ptr %29, align 8
  tail call void %30(ptr noundef nonnull align 8 dereferenceable(336) %3, ptr noundef nonnull align 8 dereferenceable(49) %16, ptr noundef nonnull align 8 dereferenceable(49) %17, i64 noundef %11)
  %31 = load ptr, ptr %14, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %31, i64 80
  %33 = load ptr, ptr %32, align 8
  %34 = tail call noundef float %33(ptr noundef nonnull align 8 dereferenceable(49) %14, ptr noundef nonnull align 8 dereferenceable(49) %17)
  tail call void @_ZNK6Matrix4copyERS_(ptr noundef nonnull align 8 dereferenceable(49) %17, ptr noundef nonnull align 8 dereferenceable(49) %18)
  br i1 %6, label %35, label %40

35:                                               ; preds = %7
  %36 = 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)
  %37 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %36, float noundef %34)
  %38 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %39 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %40

40:                                               ; preds = %35, %7
  %41 = fmul float %34, %5
  br label %42

42:                                               ; preds = %100, %40
  %.092 = phi i32 [ 0, %40 ], [ %43, %100 ]
  %.0 = phi float [ %34, %40 ], [ %74, %100 ]
  %43 = add nuw nsw i32 %.092, 1
  br i1 %6, label %44, label %48

44:                                               ; preds = %42
  %45 = 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.1)
  %46 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %45, i32 noundef %43)
  %47 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %48

48:                                               ; preds = %44, %42
  %49 = tail call noundef ptr @_ZNK12ElementsData11get_KlocalsEv(ptr noundef nonnull align 8 dereferenceable(336) %3)
  %50 = load ptr, ptr %19, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 24
  %52 = load ptr, ptr %51, align 8
  tail call void %52(ptr noundef nonnull align 8 dereferenceable(49) %19, ptr noundef nonnull align 8 dereferenceable(49) %18, i64 noundef 1, i64 noundef %13, i1 noundef zeroext true, ptr noundef nonnull align 8 dereferenceable(49) %49, i64 noundef %13, i1 noundef zeroext false, i64 noundef %8, float noundef 1.000000e+00)
  %53 = load ptr, ptr %18, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %53, i64 80
  %55 = load ptr, ptr %54, align 8
  %56 = tail call noundef float %55(ptr noundef nonnull align 8 dereferenceable(49) %18, ptr noundef nonnull align 8 dereferenceable(49) %19)
  %57 = fdiv float %.0, %56
  %58 = load ptr, ptr %20, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i64 160
  %60 = load ptr, ptr %59, align 8
  tail call void %60(ptr noundef nonnull align 8 dereferenceable(49) %20, ptr noundef nonnull align 8 dereferenceable(49) %18, float noundef 1.000000e+00, float noundef %57)
  %61 = fneg float %57
  %62 = load ptr, ptr %14, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %62, i64 160
  %64 = load ptr, ptr %63, align 8
  tail call void %64(ptr noundef nonnull align 8 dereferenceable(49) %14, ptr noundef nonnull align 8 dereferenceable(49) %19, float noundef 1.000000e+00, float noundef %61)
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %65, i64 40
  %67 = load ptr, ptr %66, align 8
  tail call void %67(ptr noundef nonnull align 8 dereferenceable(49) %14, ptr noundef nonnull align 8 dereferenceable(49) %15, ptr noundef nonnull align 8 dereferenceable(49) %16)
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %68, i64 40
  %70 = load ptr, ptr %69, align 8
  tail call void %70(ptr noundef nonnull align 8 dereferenceable(336) %3, ptr noundef nonnull align 8 dereferenceable(49) %16, ptr noundef nonnull align 8 dereferenceable(49) %17, i64 noundef %11)
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %71, i64 80
  %73 = load ptr, ptr %72, align 8
  %74 = tail call noundef float %73(ptr noundef nonnull align 8 dereferenceable(49) %14, ptr noundef nonnull align 8 dereferenceable(49) %17)
  br i1 %6, label %75, label %85

75:                                               ; preds = %48
  %76 = 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.2)
  %77 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %76, float noundef %57)
  %78 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %77, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %79 = 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.3)
  %80 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %79, float noundef %.0)
  %81 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %82 = 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.4)
  %83 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %82, float noundef %56)
  %84 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %85

85:                                               ; preds = %75, %48
  %86 = fcmp olt float %74, %41
  br i1 %86, label %104, label %87

87:                                               ; preds = %85
  %88 = fdiv float %74, %.0
  %89 = load ptr, ptr %18, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %89, i64 160
  %91 = load ptr, ptr %90, align 8
  tail call void %91(ptr noundef nonnull align 8 dereferenceable(49) %18, ptr noundef nonnull align 8 dereferenceable(49) %17, float noundef %88, float noundef 1.000000e+00)
  br i1 %6, label %92, label %100

92:                                               ; preds = %87
  %93 = 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.5)
  %94 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %93, float noundef %88)
  %95 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %96 = 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.6)
  %97 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %96, float noundef %74)
  %98 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %99 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %100

100:                                              ; preds = %92, %87
  %101 = tail call noundef zeroext i1 @_ZSt8isfinitef(float noundef %74)
  br i1 %101, label %42, label %102

102:                                              ; preds = %100
  %103 = 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.7)
  tail call void @exit(i32 noundef -1) #5
  unreachable

104:                                              ; preds = %85
  br i1 %4, label %105, label %119

105:                                              ; preds = %104
  %106 = tail call noundef i32 @_ZNK12ElementsData10get_deviceEv(ptr noundef nonnull align 8 dereferenceable(336) %3)
  %107 = tail call noundef i64 @_ZNK10dataKeeper14get_nodesCountEv(ptr noundef nonnull align 8 dereferenceable(3168) %2)
  %108 = tail call noundef ptr @_ZN6Matrix9setMatrixE11DEVICE_NAMEmm(i32 noundef %106, i64 noundef %107, i64 noundef %9)
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %109, i64 32
  %111 = load ptr, ptr %110, align 8
  tail call void %111(ptr noundef nonnull align 8 dereferenceable(336) %3, ptr noundef nonnull align 8 dereferenceable(49) %20, ptr noundef nonnull align 8 dereferenceable(49) %108)
  %112 = tail call noundef ptr @_ZNK12ElementsData15get_adjElementsEv(ptr noundef nonnull align 8 dereferenceable(336) %3)
  %113 = load ptr, ptr %108, align 8, !tbaa !5
  %114 = getelementptr inbounds i8, ptr %113, i64 40
  %115 = load ptr, ptr %114, align 8
  tail call void %115(ptr noundef nonnull align 8 dereferenceable(49) %108, ptr noundef nonnull align 8 dereferenceable(49) %112, ptr noundef nonnull align 8 dereferenceable(49) %108)
  tail call void @_ZNK6Matrix4copyERS_(ptr noundef nonnull align 8 dereferenceable(49) %108, ptr noundef nonnull align 8 dereferenceable(49) %0)
  %116 = load ptr, ptr %108, align 8, !tbaa !5
  %117 = getelementptr inbounds i8, ptr %116, i64 8
  %118 = load ptr, ptr %117, align 8
  tail call void %118(ptr noundef nonnull align 8 dereferenceable(49) %108) #6
  br label %120

119:                                              ; preds = %104
  tail call void @_ZNK6Matrix4copyERS_(ptr noundef nonnull align 8 dereferenceable(49) %20, ptr noundef nonnull align 8 dereferenceable(49) %0)
  br label %120

120:                                              ; preds = %119, %105
  ret void
}

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

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

declare noundef ptr @_ZNK12ElementsData5get_mEv(ptr noundef nonnull align 8 dereferenceable(336)) local_unnamed_addr #0

declare noundef ptr @_ZNK12ElementsData5get_zEv(ptr noundef nonnull align 8 dereferenceable(336)) local_unnamed_addr #0

declare noundef ptr @_ZNK12ElementsData5get_sEv(ptr noundef nonnull align 8 dereferenceable(336)) local_unnamed_addr #0

declare noundef ptr @_ZNK12ElementsData5get_pEv(ptr noundef nonnull align 8 dereferenceable(336)) local_unnamed_addr #0

declare noundef ptr @_ZNK12ElementsData5get_uEv(ptr noundef nonnull align 8 dereferenceable(336)) local_unnamed_addr #0

declare noundef ptr @_ZNK12ElementsData5get_xEv(ptr noundef nonnull align 8 dereferenceable(336)) local_unnamed_addr #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 #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt8isfinitef(float noundef) local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4

declare noundef ptr @_ZN6Matrix9setMatrixE11DEVICE_NAMEmm(i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

declare noundef i32 @_ZNK12ElementsData10get_deviceEv(ptr noundef nonnull align 8 dereferenceable(336)) local_unnamed_addr #0

declare noundef ptr @_ZNK12ElementsData15get_adjElementsEv(ptr noundef nonnull align 8 dereferenceable(336)) local_unnamed_addr #0

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind }
attributes #6 = { nounwind }

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

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


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