; LLVM IR from JoshuaSBrown/QC_Tools :: src/libcatnip (qc_functions)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.catnip::Matrix" = type { i32, i32, i32, ptr }
%"struct.catnip::LogData" = type { %"struct.std::pair.8" }
%"struct.std::pair.8" = type { ptr, ptr }
%"struct.catnip::LogData.10" = type { i8 }

@.str.2 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.8 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [7 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 i32 @_ZNK6catnip6Matrix8get_rowsEv(ptr noundef nonnull align 8 dereferenceable(24)) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN6catnip27calculate_transfer_integralERKNS_6MatrixES2_S0_S2_S2_b(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef byval(%"class.catnip::Matrix") align 8 %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, i1 noundef zeroext %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca %"class.catnip::Matrix", align 8
  %13 = alloca %"class.catnip::Matrix", align 8
  %14 = alloca %"class.catnip::Matrix", align 8
  %15 = alloca %"class.catnip::Matrix", align 8
  %16 = alloca %"class.catnip::Matrix", align 8
  %17 = alloca %"struct.catnip::LogData", align 8
  %18 = alloca %"struct.catnip::LogData.10", align 1
  %19 = alloca %"struct.catnip::LogData", align 8
  %20 = alloca %"struct.catnip::LogData.10", align 1
  %21 = alloca %"class.catnip::Matrix", align 8
  %22 = alloca %"class.catnip::Matrix", align 8
  %23 = alloca %"class.catnip::Matrix", align 8
  %24 = alloca %"class.catnip::Matrix", align 8
  %25 = alloca %"class.catnip::Matrix", align 8
  %26 = alloca %"class.catnip::Matrix", align 8
  %27 = alloca %"class.catnip::Matrix", align 8
  %28 = alloca %"class.catnip::Matrix", align 8
  %29 = alloca %"struct.catnip::LogData", align 8
  %30 = alloca %"struct.catnip::LogData.10", align 1
  %31 = alloca %"class.catnip::Matrix", align 8
  %32 = alloca %"struct.catnip::LogData", align 8
  %33 = alloca %"struct.catnip::LogData.10", align 1
  %34 = alloca %"class.catnip::Matrix", align 8
  %35 = alloca %"class.catnip::Matrix", align 8
  %36 = alloca %"class.catnip::Matrix", align 8
  %37 = alloca %"class.catnip::Matrix", align 8
  %38 = alloca %"struct.catnip::LogData", align 8
  %39 = alloca %"struct.catnip::LogData.10", align 1
  %40 = alloca %"class.catnip::Matrix", align 8
  %41 = alloca %"class.catnip::Matrix", align 8
  %42 = alloca %"class.catnip::Matrix", align 8
  %43 = alloca %"class.catnip::Matrix", align 8
  %44 = alloca %"class.catnip::Matrix", align 8
  %45 = alloca double, align 8
  %46 = alloca double, align 8
  %47 = alloca double, align 8
  %48 = alloca double, align 8
  %49 = alloca double, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %50 = zext i1 %5 to i8
  store i8 %50, ptr %11, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #9
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK6catnip6Matrix6invertEv(ptr dead_on_unwind writable sret(%"class.catnip::Matrix") align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %51)
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #9
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNK6catnip6Matrix6invertEv(ptr dead_on_unwind writable sret(%"class.catnip::Matrix") align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %52)
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #9
  call void @_ZNK6catnip6Matrix6invertEv(ptr dead_on_unwind writable sret(%"class.catnip::Matrix") align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #9
  call void @_ZN6catnip6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %15)
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #9
  call void @_ZN6catnip6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %16)
  %53 = load i8, ptr %11, align 1, !tbaa !9, !range !11, !noundef !12
  %54 = trunc i8 %53 to i1
  br i1 %54, label %55, label %64

55:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #9
  call void @llvm.memset.p0.i64(ptr align 1 %18, i8 0, i64 1, i1 false)
  %56 = call { ptr, ptr } @_ZN6catniplsINS_4NoneELm63EEENS_7LogDataISt4pairIOT_PKcEEEONS2_IS4_EERAT0__S6_(ptr noundef nonnull align 1 dereferenceable(1) %18, ptr noundef nonnull align 1 dereferenceable(63) @.str.3) #9
  %57 = getelementptr inbounds %"struct.catnip::LogData", ptr %17, i32 0, i32 0
  %58 = getelementptr inbounds { ptr, ptr }, ptr %57, i32 0, i32 0
  %59 = extractvalue { ptr, ptr } %56, 0
  store ptr %59, ptr %58, align 8
  %60 = getelementptr inbounds { ptr, ptr }, ptr %57, i32 0, i32 1
  %61 = extractvalue { ptr, ptr } %56, 1
  store ptr %61, ptr %60, align 8
  call void @_ZN6catnip3LogISt4pairIONS_4NoneEPKcEEEvS5_iONS_7LogDataIT_EEi(ptr noundef @.str.2, i32 noundef 71, ptr noundef nonnull align 8 dereferenceable(16) %17, i32 noundef 2)
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #9
  %62 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnip6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %12)
  %63 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnip6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %13)
  br label %77

64:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #9
  call void @llvm.memset.p0.i64(ptr align 1 %20, i8 0, i64 1, i1 false)
  %65 = call { ptr, ptr } @_ZN6catniplsINS_4NoneELm41EEENS_7LogDataISt4pairIOT_PKcEEEONS2_IS4_EERAT0__S6_(ptr noundef nonnull align 1 dereferenceable(1) %20, ptr noundef nonnull align 1 dereferenceable(41) @.str.4) #9
  %66 = getelementptr inbounds %"struct.catnip::LogData", ptr %19, i32 0, i32 0
  %67 = getelementptr inbounds { ptr, ptr }, ptr %66, i32 0, i32 0
  %68 = extractvalue { ptr, ptr } %65, 0
  store ptr %68, ptr %67, align 8
  %69 = getelementptr inbounds { ptr, ptr }, ptr %66, i32 0, i32 1
  %70 = extractvalue { ptr, ptr } %65, 1
  store ptr %70, ptr %69, align 8
  call void @_ZN6catnip3LogISt4pairIONS_4NoneEPKcEEEvS5_iONS_7LogDataIT_EEi(ptr noundef @.str.2, i32 noundef 75, ptr noundef nonnull align 8 dereferenceable(16) %19, i32 noundef 2)
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #9
  %71 = call noundef i32 @_ZNK6catnip6Matrix8get_rowsEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  %72 = call noundef i32 @_ZNK6catnip6Matrix8get_shelEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
  call void @_ZN6catnip6MatrixC1Eiii(ptr noundef nonnull align 8 dereferenceable(24) %21, i32 noundef %71, i32 noundef 1, i32 noundef %72)
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #9
  %73 = call noundef i32 @_ZNK6catnip6Matrix8get_rowsEv(ptr noundef nonnull align 8 dereferenceable(24) %13)
  %74 = call noundef i32 @_ZNK6catnip6Matrix8get_shelEv(ptr noundef nonnull align 8 dereferenceable(24) %13)
  call void @_ZN6catnip6MatrixC1Eiii(ptr noundef nonnull align 8 dereferenceable(24) %22, i32 noundef %73, i32 noundef 1, i32 noundef %74)
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %12, i64 24, i1 false), !tbaa.struct !13
  call void @_ZN6catnip23Matrix_concatenate_rowsENS_6MatrixERKS0_(ptr dead_on_unwind writable sret(%"class.catnip::Matrix") align 8 %23, ptr noundef byval(%"class.catnip::Matrix") align 8 %24, ptr noundef nonnull align 8 dereferenceable(24) %22)
  %75 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnip6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %23)
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %21, i64 24, i1 false), !tbaa.struct !13
  call void @_ZN6catnip23Matrix_concatenate_rowsENS_6MatrixERKS0_(ptr dead_on_unwind writable sret(%"class.catnip::Matrix") align 8 %25, ptr noundef byval(%"class.catnip::Matrix") align 8 %26, ptr noundef nonnull align 8 dereferenceable(24) %13)
  %76 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnip6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %25)
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #9
  br label %77

77:                                               ; preds = %64, %55
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #9
  call void @_ZNK6catnip6Matrix6invertEv(ptr dead_on_unwind writable sret(%"class.catnip::Matrix") align 8 %27, ptr noundef nonnull align 8 dereferenceable(24) %15)
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #9
  call void @_ZNK6catnip6Matrix6invertEv(ptr dead_on_unwind writable sret(%"class.catnip::Matrix") align 8 %28, ptr noundef nonnull align 8 dereferenceable(24) %16)
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #9
  call void @llvm.memset.p0.i64(ptr align 1 %30, i8 0, i64 1, i1 false)
  %78 = call { ptr, ptr } @_ZN6catniplsINS_4NoneELm29EEENS_7LogDataISt4pairIOT_PKcEEEONS2_IS4_EERAT0__S6_(ptr noundef nonnull align 1 dereferenceable(1) %30, ptr noundef nonnull align 1 dereferenceable(29) @.str.5) #9
  %79 = getelementptr inbounds %"struct.catnip::LogData", ptr %29, i32 0, i32 0
  %80 = getelementptr inbounds { ptr, ptr }, ptr %79, i32 0, i32 0
  %81 = extractvalue { ptr, ptr } %78, 0
  store ptr %81, ptr %80, align 8
  %82 = getelementptr inbounds { ptr, ptr }, ptr %79, i32 0, i32 1
  %83 = extractvalue { ptr, ptr } %78, 1
  store ptr %83, ptr %82, align 8
  call void @_ZN6catnip3LogISt4pairIONS_4NoneEPKcEEEvS5_iONS_7LogDataIT_EEi(ptr noundef @.str.2, i32 noundef 84, ptr noundef nonnull align 8 dereferenceable(16) %29, i32 noundef 3)
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #9
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnipmlERKNS_6MatrixES2_(ptr noundef nonnull align 8 dereferenceable(24) %84, ptr noundef nonnull align 8 dereferenceable(24) %14)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %31, ptr align 8 %85, i64 24, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #9
  call void @llvm.memset.p0.i64(ptr align 1 %33, i8 0, i64 1, i1 false)
  %86 = call { ptr, ptr } @_ZN6catniplsINS_4NoneELm33EEENS_7LogDataISt4pairIOT_PKcEEEONS2_IS4_EERAT0__S6_(ptr noundef nonnull align 1 dereferenceable(1) %33, ptr noundef nonnull align 1 dereferenceable(33) @.str.6) #9
  %87 = getelementptr inbounds %"struct.catnip::LogData", ptr %32, i32 0, i32 0
  %88 = getelementptr inbounds { ptr, ptr }, ptr %87, i32 0, i32 0
  %89 = extractvalue { ptr, ptr } %86, 0
  store ptr %89, ptr %88, align 8
  %90 = getelementptr inbounds { ptr, ptr }, ptr %87, i32 0, i32 1
  %91 = extractvalue { ptr, ptr } %86, 1
  store ptr %91, ptr %90, align 8
  call void @_ZN6catnip3LogISt4pairIONS_4NoneEPKcEEEvS5_iONS_7LogDataIT_EEi(ptr noundef @.str.2, i32 noundef 87, ptr noundef nonnull align 8 dereferenceable(16) %32, i32 noundef 2)
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #9
  %92 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnipmlERKNS_6MatrixES2_(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(24) %31)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %92, i64 24, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #9
  %93 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnipmlERKNS_6MatrixES2_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %31)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 8 %93, i64 24, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 24, ptr %36) #9
  call void @_ZNK6catnip6Matrix6invertEv(ptr dead_on_unwind writable sret(%"class.catnip::Matrix") align 8 %36, ptr noundef nonnull align 8 dereferenceable(24) %34)
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #9
  call void @_ZNK6catnip6Matrix6invertEv(ptr dead_on_unwind writable sret(%"class.catnip::Matrix") align 8 %37, ptr noundef nonnull align 8 dereferenceable(24) %35)
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #9
  call void @llvm.memset.p0.i64(ptr align 1 %39, i8 0, i64 1, i1 false)
  %94 = call { ptr, ptr } @_ZN6catniplsINS_4NoneELm17EEENS_7LogDataISt4pairIOT_PKcEEEONS2_IS4_EERAT0__S6_(ptr noundef nonnull align 1 dereferenceable(1) %39, ptr noundef nonnull align 1 dereferenceable(17) @.str.7) #9
  %95 = getelementptr inbounds %"struct.catnip::LogData", ptr %38, i32 0, i32 0
  %96 = getelementptr inbounds { ptr, ptr }, ptr %95, i32 0, i32 0
  %97 = extractvalue { ptr, ptr } %94, 0
  store ptr %97, ptr %96, align 8
  %98 = getelementptr inbounds { ptr, ptr }, ptr %95, i32 0, i32 1
  %99 = extractvalue { ptr, ptr } %94, 1
  store ptr %99, ptr %98, align 8
  call void @_ZN6catnip3LogISt4pairIONS_4NoneEPKcEEEvS5_iONS_7LogDataIT_EEi(ptr noundef @.str.2, i32 noundef 94, ptr noundef nonnull align 8 dereferenceable(16) %38, i32 noundef 2)
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %40) #9
  %100 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnipmlERKNS_6MatrixES2_(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 8 dereferenceable(24) %36)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %40, ptr align 8 %100, i64 24, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 24, ptr %41) #9
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN6catnip11Matrix_diagERKNS_6MatrixE(ptr dead_on_unwind writable sret(%"class.catnip::Matrix") align 8 %41, ptr noundef nonnull align 8 dereferenceable(24) %101)
  call void @llvm.lifetime.start.p0(i64 24, ptr %42) #9
  %102 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnipmlERKNS_6MatrixES2_(ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 8 dereferenceable(24) %36)
  %103 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnipmlERKNS_6MatrixES2_(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 8 dereferenceable(24) %102)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %42, ptr align 8 %103, i64 24, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #9
  %104 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnipmlERKNS_6MatrixES2_(ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 8 dereferenceable(24) %37)
  %105 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnipmlERKNS_6MatrixES2_(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 8 dereferenceable(24) %104)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %43, ptr align 8 %105, i64 24, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 24, ptr %44) #9
  %106 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnipmlERKNS_6MatrixES2_(ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 8 dereferenceable(24) %36)
  %107 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnipmlERKNS_6MatrixES2_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %106)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %44, ptr align 8 %107, i64 24, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #9
  %108 = call noundef double @_ZNK6catnip6Matrix8get_elemEii(ptr noundef nonnull align 8 dereferenceable(24) %42, i32 noundef 1, i32 noundef 1)
  store double %108, ptr %45, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #9
  %109 = call noundef double @_ZNK6catnip6Matrix8get_elemEii(ptr noundef nonnull align 8 dereferenceable(24) %43, i32 noundef 1, i32 noundef 1)
  store double %109, ptr %46, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #9
  %110 = call noundef double @_ZNK6catnip6Matrix8get_elemEii(ptr noundef nonnull align 8 dereferenceable(24) %44, i32 noundef 1, i32 noundef 1)
  store double %110, ptr %47, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #9
  %111 = call noundef double @_ZNK6catnip6Matrix8get_elemEii(ptr noundef nonnull align 8 dereferenceable(24) %40, i32 noundef 1, i32 noundef 1)
  store double %111, ptr %48, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #9
  %112 = load double, ptr %45, align 8, !tbaa !16
  %113 = load double, ptr %46, align 8, !tbaa !16
  %114 = load double, ptr %47, align 8, !tbaa !16
  %115 = fadd double %113, %114
  %116 = fmul double 5.000000e-01, %115
  %117 = load double, ptr %48, align 8, !tbaa !16
  %118 = fneg double %116
  %119 = call double @llvm.fmuladd.f64(double %118, double %117, double %112)
  store double %119, ptr %49, align 8, !tbaa !16
  %120 = load double, ptr %49, align 8, !tbaa !16
  %121 = load double, ptr %48, align 8, !tbaa !16
  %122 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %121, i32 noundef 2)
  %123 = fsub double 1.000000e+00, %122
  %124 = fdiv double %120, %123
  store double %124, ptr %49, align 8, !tbaa !16
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
  %126 = load double, ptr %45, align 8, !tbaa !16
  %127 = fmul double %126, 2.721140e+01
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %125, double noundef %127)
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %128, ptr noundef @.str.9)
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.10)
  %131 = load double, ptr %47, align 8, !tbaa !16
  %132 = fmul double %131, 2.721140e+01
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %130, double noundef %132)
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %133, ptr noundef @.str.9)
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.11)
  %136 = load double, ptr %46, align 8, !tbaa !16
  %137 = fmul double %136, 2.721140e+01
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %135, double noundef %137)
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %138, ptr noundef @.str.9)
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.12)
  %141 = load double, ptr %48, align 8, !tbaa !16
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %140, double noundef %141)
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %142, ptr noundef @.str.13)
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.14)
  %145 = load double, ptr %49, align 8, !tbaa !16
  %146 = fmul double %145, 2.721140e+01
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %144, double noundef %146)
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %147, ptr noundef @.str.9)
  %149 = load double, ptr %49, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #9
  ret double %149
}

declare void @_ZNK6catnip6Matrix6invertEv(ptr dead_on_unwind writable sret(%"class.catnip::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #1

declare void @_ZN6catnip6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6catnip3LogISt4pairIONS_4NoneEPKcEEEvS5_iONS_7LogDataIT_EEi(ptr noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, ptr } @_ZN6catniplsINS_4NoneELm63EEENS_7LogDataISt4pairIOT_PKcEEEONS2_IS4_EERAT0__S6_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(63)) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnip6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, ptr } @_ZN6catniplsINS_4NoneELm41EEENS_7LogDataISt4pairIOT_PKcEEEONS2_IS4_EERAT0__S6_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(41)) #3

declare noundef i32 @_ZNK6catnip6Matrix8get_shelEv(ptr noundef nonnull align 8 dereferenceable(24)) #1

declare void @_ZN6catnip6MatrixC1Eiii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #1

declare void @_ZN6catnip23Matrix_concatenate_rowsENS_6MatrixERKS0_(ptr dead_on_unwind writable sret(%"class.catnip::Matrix") align 8, ptr noundef byval(%"class.catnip::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, ptr } @_ZN6catniplsINS_4NoneELm29EEENS_7LogDataISt4pairIOT_PKcEEEONS2_IS4_EERAT0__S6_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(29)) #3

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnipmlERKNS_6MatrixES2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, ptr } @_ZN6catniplsINS_4NoneELm33EEENS_7LogDataISt4pairIOT_PKcEEEONS2_IS4_EERAT0__S6_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(33)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, ptr } @_ZN6catniplsINS_4NoneELm17EEENS_7LogDataISt4pairIOT_PKcEEEONS2_IS4_EERAT0__S6_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(17)) #3

declare void @_ZN6catnip11Matrix_diagERKNS_6MatrixE(ptr dead_on_unwind writable sret(%"class.catnip::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #1

declare noundef double @_ZNK6catnip6Matrix8get_elemEii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef, i32 noundef) #7

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

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

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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 #8 = { 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 #9 = { 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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{i64 0, i64 4, !14, i64 4, i64 4, !14, i64 8, i64 4, !14, i64 16, i64 8, !5}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.catnip::Matrix" = type { i32, i32, i32, ptr }
%"struct.catnip::LogData" = type { %"struct.std::pair.8" }
%"struct.std::pair.8" = type { ptr, ptr }
%"struct.catnip::LogData.10" = type { i8 }

@.str.2 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.8 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [7 x i8], align 1

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

declare noundef i32 @_ZNK6catnip6Matrix8get_rowsEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN6catnip27calculate_transfer_integralERKNS_6MatrixES2_S0_S2_S2_b(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef byval(%"class.catnip::Matrix") align 8 %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, i1 noundef zeroext %5) local_unnamed_addr #2 {
  %7 = alloca %"class.catnip::Matrix", align 8
  %8 = alloca %"class.catnip::Matrix", align 8
  %9 = alloca %"class.catnip::Matrix", align 8
  %10 = alloca %"class.catnip::Matrix", align 8
  %11 = alloca %"class.catnip::Matrix", align 8
  %12 = alloca %"struct.catnip::LogData", align 8
  %13 = alloca %"struct.catnip::LogData.10", align 1
  %14 = alloca %"struct.catnip::LogData", align 8
  %15 = alloca %"struct.catnip::LogData.10", align 1
  %16 = alloca %"class.catnip::Matrix", align 8
  %17 = alloca %"class.catnip::Matrix", align 8
  %18 = alloca %"class.catnip::Matrix", align 8
  %19 = alloca %"class.catnip::Matrix", align 8
  %20 = alloca %"class.catnip::Matrix", align 8
  %21 = alloca %"class.catnip::Matrix", align 8
  %22 = alloca %"struct.catnip::LogData", align 8
  %23 = alloca %"struct.catnip::LogData.10", align 1
  %24 = alloca %"class.catnip::Matrix", align 8
  %25 = alloca %"struct.catnip::LogData", align 8
  %26 = alloca %"struct.catnip::LogData.10", align 1
  %27 = alloca %"class.catnip::Matrix", align 8
  %28 = alloca %"class.catnip::Matrix", align 8
  %29 = alloca %"class.catnip::Matrix", align 8
  %30 = alloca %"class.catnip::Matrix", align 8
  %31 = alloca %"struct.catnip::LogData", align 8
  %32 = alloca %"struct.catnip::LogData.10", align 1
  %33 = alloca %"class.catnip::Matrix", align 8
  %34 = alloca %"class.catnip::Matrix", align 8
  %35 = alloca %"class.catnip::Matrix", align 8
  %36 = alloca %"class.catnip::Matrix", align 8
  %37 = alloca %"class.catnip::Matrix", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  call void @_ZNK6catnip6Matrix6invertEv(ptr dead_on_unwind nonnull writable sret(%"class.catnip::Matrix") align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  call void @_ZNK6catnip6Matrix6invertEv(ptr dead_on_unwind nonnull writable sret(%"class.catnip::Matrix") align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #8
  call void @_ZNK6catnip6Matrix6invertEv(ptr dead_on_unwind nonnull writable sret(%"class.catnip::Matrix") align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #8
  call void @_ZN6catnip6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %10)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #8
  call void @_ZN6catnip6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %11)
  br i1 %5, label %38, label %45

38:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #8
  store i8 0, ptr %13, align 1
  %39 = call { ptr, ptr } @_ZN6catniplsINS_4NoneELm63EEENS_7LogDataISt4pairIOT_PKcEEEONS2_IS4_EERAT0__S6_(ptr noundef nonnull align 1 dereferenceable(1) %13, ptr noundef nonnull align 1 dereferenceable(63) @.str.3) #8
  %40 = extractvalue { ptr, ptr } %39, 0
  store ptr %40, ptr %12, align 8
  %41 = getelementptr inbounds i8, ptr %12, i64 8
  %42 = extractvalue { ptr, ptr } %39, 1
  store ptr %42, ptr %41, align 8
  call void @_ZN6catnip3LogISt4pairIONS_4NoneEPKcEEEvS5_iONS_7LogDataIT_EEi(ptr noundef nonnull @.str.2, i32 noundef 71, ptr noundef nonnull align 8 dereferenceable(16) %12, i32 noundef 2)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #8
  %43 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnip6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %7)
  %44 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnip6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %8)
  br label %56

45:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #8
  store i8 0, ptr %15, align 1
  %46 = call { ptr, ptr } @_ZN6catniplsINS_4NoneELm41EEENS_7LogDataISt4pairIOT_PKcEEEONS2_IS4_EERAT0__S6_(ptr noundef nonnull align 1 dereferenceable(1) %15, ptr noundef nonnull align 1 dereferenceable(41) @.str.4) #8
  %47 = extractvalue { ptr, ptr } %46, 0
  store ptr %47, ptr %14, align 8
  %48 = getelementptr inbounds i8, ptr %14, i64 8
  %49 = extractvalue { ptr, ptr } %46, 1
  store ptr %49, ptr %48, align 8
  call void @_ZN6catnip3LogISt4pairIONS_4NoneEPKcEEEvS5_iONS_7LogDataIT_EEi(ptr noundef nonnull @.str.2, i32 noundef 75, ptr noundef nonnull align 8 dereferenceable(16) %14, i32 noundef 2)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #8
  %50 = call noundef i32 @_ZNK6catnip6Matrix8get_rowsEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %51 = call noundef i32 @_ZNK6catnip6Matrix8get_shelEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  call void @_ZN6catnip6MatrixC1Eiii(ptr noundef nonnull align 8 dereferenceable(24) %16, i32 noundef %50, i32 noundef 1, i32 noundef %51)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #8
  %52 = call noundef i32 @_ZNK6catnip6Matrix8get_rowsEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %53 = call noundef i32 @_ZNK6catnip6Matrix8get_shelEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  call void @_ZN6catnip6MatrixC1Eiii(ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef %52, i32 noundef 1, i32 noundef %53)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #8
  call void @_ZN6catnip23Matrix_concatenate_rowsENS_6MatrixERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.catnip::Matrix") align 8 %18, ptr noundef nonnull byval(%"class.catnip::Matrix") align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %17)
  %54 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnip6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %18)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #8
  call void @_ZN6catnip23Matrix_concatenate_rowsENS_6MatrixERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.catnip::Matrix") align 8 %19, ptr noundef nonnull byval(%"class.catnip::Matrix") align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %8)
  %55 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnip6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %19)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #8
  br label %56

56:                                               ; preds = %45, %38
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #8
  call void @_ZNK6catnip6Matrix6invertEv(ptr dead_on_unwind nonnull writable sret(%"class.catnip::Matrix") align 8 %20, ptr noundef nonnull align 8 dereferenceable(24) %10)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #8
  call void @_ZNK6catnip6Matrix6invertEv(ptr dead_on_unwind nonnull writable sret(%"class.catnip::Matrix") align 8 %21, ptr noundef nonnull align 8 dereferenceable(24) %11)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #8
  store i8 0, ptr %23, align 1
  %57 = call { ptr, ptr } @_ZN6catniplsINS_4NoneELm29EEENS_7LogDataISt4pairIOT_PKcEEEONS2_IS4_EERAT0__S6_(ptr noundef nonnull align 1 dereferenceable(1) %23, ptr noundef nonnull align 1 dereferenceable(29) @.str.5) #8
  %58 = extractvalue { ptr, ptr } %57, 0
  store ptr %58, ptr %22, align 8
  %59 = getelementptr inbounds i8, ptr %22, i64 8
  %60 = extractvalue { ptr, ptr } %57, 1
  store ptr %60, ptr %59, align 8
  call void @_ZN6catnip3LogISt4pairIONS_4NoneEPKcEEEvS5_iONS_7LogDataIT_EEi(ptr noundef nonnull @.str.2, i32 noundef 84, ptr noundef nonnull align 8 dereferenceable(16) %22, i32 noundef 3)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %24) #8
  %61 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnipmlERKNS_6MatrixES2_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %9)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %61, i64 24, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %26) #8
  store i8 0, ptr %26, align 1
  %62 = call { ptr, ptr } @_ZN6catniplsINS_4NoneELm33EEENS_7LogDataISt4pairIOT_PKcEEEONS2_IS4_EERAT0__S6_(ptr noundef nonnull align 1 dereferenceable(1) %26, ptr noundef nonnull align 1 dereferenceable(33) @.str.6) #8
  %63 = extractvalue { ptr, ptr } %62, 0
  store ptr %63, ptr %25, align 8
  %64 = getelementptr inbounds i8, ptr %25, i64 8
  %65 = extractvalue { ptr, ptr } %62, 1
  store ptr %65, ptr %64, align 8
  call void @_ZN6catnip3LogISt4pairIONS_4NoneEPKcEEEvS5_iONS_7LogDataIT_EEi(ptr noundef nonnull @.str.2, i32 noundef 87, ptr noundef nonnull align 8 dereferenceable(16) %25, i32 noundef 2)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %27) #8
  %66 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnipmlERKNS_6MatrixES2_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %24)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(24) %66, i64 24, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %28) #8
  %67 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnipmlERKNS_6MatrixES2_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %24)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %67, i64 24, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %29) #8
  call void @_ZNK6catnip6Matrix6invertEv(ptr dead_on_unwind nonnull writable sret(%"class.catnip::Matrix") align 8 %29, ptr noundef nonnull align 8 dereferenceable(24) %27)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %30) #8
  call void @_ZNK6catnip6Matrix6invertEv(ptr dead_on_unwind nonnull writable sret(%"class.catnip::Matrix") align 8 %30, ptr noundef nonnull align 8 dereferenceable(24) %28)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %31) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %32) #8
  store i8 0, ptr %32, align 1
  %68 = call { ptr, ptr } @_ZN6catniplsINS_4NoneELm17EEENS_7LogDataISt4pairIOT_PKcEEEONS2_IS4_EERAT0__S6_(ptr noundef nonnull align 1 dereferenceable(1) %32, ptr noundef nonnull align 1 dereferenceable(17) @.str.7) #8
  %69 = extractvalue { ptr, ptr } %68, 0
  store ptr %69, ptr %31, align 8
  %70 = getelementptr inbounds i8, ptr %31, i64 8
  %71 = extractvalue { ptr, ptr } %68, 1
  store ptr %71, ptr %70, align 8
  call void @_ZN6catnip3LogISt4pairIONS_4NoneEPKcEEEvS5_iONS_7LogDataIT_EEi(ptr noundef nonnull @.str.2, i32 noundef 94, ptr noundef nonnull align 8 dereferenceable(16) %31, i32 noundef 2)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %32) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %33) #8
  %72 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnipmlERKNS_6MatrixES2_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %29)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(24) %72, i64 24, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %34) #8
  call void @_ZN6catnip11Matrix_diagERKNS_6MatrixE(ptr dead_on_unwind nonnull writable sret(%"class.catnip::Matrix") align 8 %34, ptr noundef nonnull align 8 dereferenceable(24) %4)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %35) #8
  %73 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnipmlERKNS_6MatrixES2_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %29)
  %74 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnipmlERKNS_6MatrixES2_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %73)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 8 dereferenceable(24) %74, i64 24, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %36) #8
  %75 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnipmlERKNS_6MatrixES2_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %30)
  %76 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnipmlERKNS_6MatrixES2_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %75)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 8 dereferenceable(24) %76, i64 24, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %37) #8
  %77 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnipmlERKNS_6MatrixES2_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %29)
  %78 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnipmlERKNS_6MatrixES2_(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(24) %77)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(24) %78, i64 24, i1 false), !tbaa.struct !5
  %79 = call noundef double @_ZNK6catnip6Matrix8get_elemEii(ptr noundef nonnull align 8 dereferenceable(24) %35, i32 noundef 1, i32 noundef 1)
  %80 = call noundef double @_ZNK6catnip6Matrix8get_elemEii(ptr noundef nonnull align 8 dereferenceable(24) %36, i32 noundef 1, i32 noundef 1)
  %81 = call noundef double @_ZNK6catnip6Matrix8get_elemEii(ptr noundef nonnull align 8 dereferenceable(24) %37, i32 noundef 1, i32 noundef 1)
  %82 = call noundef double @_ZNK6catnip6Matrix8get_elemEii(ptr noundef nonnull align 8 dereferenceable(24) %33, i32 noundef 1, i32 noundef 1)
  %83 = fadd double %80, %81
  %84 = fmul double %83, -5.000000e-01
  %85 = call double @llvm.fmuladd.f64(double %84, double %82, double %79)
  %86 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %82, i32 noundef 2)
  %87 = fsub double 1.000000e+00, %86
  %88 = fdiv double %85, %87
  %89 = 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.8)
  %90 = fmul double %79, 2.721140e+01
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %89, double noundef %90)
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %91, ptr noundef nonnull @.str.9)
  %93 = 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.10)
  %94 = fmul double %81, 2.721140e+01
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %93, double noundef %94)
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef nonnull @.str.9)
  %97 = 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.11)
  %98 = fmul double %80, 2.721140e+01
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %97, double noundef %98)
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %99, ptr noundef nonnull @.str.9)
  %101 = 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.12)
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %101, double noundef %82)
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %102, ptr noundef nonnull @.str.13)
  %104 = 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.14)
  %105 = fmul double %88, 2.721140e+01
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %104, double noundef %105)
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %106, ptr noundef nonnull @.str.9)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %37) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %36) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %35) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %34) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %33) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %29) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  ret double %88
}

declare void @_ZNK6catnip6Matrix6invertEv(ptr dead_on_unwind writable sret(%"class.catnip::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

declare void @_ZN6catnip6MatrixC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6catnip3LogISt4pairIONS_4NoneEPKcEEEvS5_iONS_7LogDataIT_EEi(ptr noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, ptr } @_ZN6catniplsINS_4NoneELm63EEENS_7LogDataISt4pairIOT_PKcEEEONS2_IS4_EERAT0__S6_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(63)) local_unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnip6MatrixaSERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, ptr } @_ZN6catniplsINS_4NoneELm41EEENS_7LogDataISt4pairIOT_PKcEEEONS2_IS4_EERAT0__S6_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(41)) local_unnamed_addr #3

declare noundef i32 @_ZNK6catnip6Matrix8get_shelEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

declare void @_ZN6catnip6MatrixC1Eiii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #1

declare void @_ZN6catnip23Matrix_concatenate_rowsENS_6MatrixERKS0_(ptr dead_on_unwind writable sret(%"class.catnip::Matrix") align 8, ptr noundef byval(%"class.catnip::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, ptr } @_ZN6catniplsINS_4NoneELm29EEENS_7LogDataISt4pairIOT_PKcEEEONS2_IS4_EERAT0__S6_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(29)) local_unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN6catnipmlERKNS_6MatrixES2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, ptr } @_ZN6catniplsINS_4NoneELm33EEENS_7LogDataISt4pairIOT_PKcEEEONS2_IS4_EERAT0__S6_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(33)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, ptr } @_ZN6catniplsINS_4NoneELm17EEENS_7LogDataISt4pairIOT_PKcEEEONS2_IS4_EERAT0__S6_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(17)) local_unnamed_addr #3

declare void @_ZN6catnip11Matrix_diagERKNS_6MatrixE(ptr dead_on_unwind writable sret(%"class.catnip::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

declare noundef double @_ZNK6catnip6Matrix8get_elemEii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef, i32 noundef) local_unnamed_addr #6

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

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

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


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SROAPass