; LLVM IR from ddemidov/amgcl :: lib (amgcl)

; 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.boost::iterators::transform_iterator" = type <{ %"class.boost::iterators::iterator_adaptor", [8 x i8] }>
%"class.boost::iterators::iterator_adaptor" = type { ptr }
%class.anon = type { i8 }
%"class.boost::iterators::transform_iterator.18" = type <{ %"class.boost::iterators::iterator_adaptor.19", [8 x i8] }>
%"class.boost::iterators::iterator_adaptor.19" = type { ptr }
%class.anon.25 = type { i8 }
%"class.std::tuple.27" = type { %"struct.std::_Tuple_impl.base.41", [4 x i8] }
%"struct.std::_Tuple_impl.base.41" = type <{ %"struct.std::_Tuple_impl.29", %"struct.std::_Head_base.12" }>
%"struct.std::_Tuple_impl.29" = type { %"struct.std::_Tuple_impl.30", %"struct.std::_Head_base.36" }
%"struct.std::_Tuple_impl.30" = type { %"struct.std::_Tuple_impl.3", %"struct.std::_Head_base.31" }
%"struct.std::_Tuple_impl.3" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { %"class.boost::iterator_range" }
%"class.boost::iterator_range" = type { %"class.boost::iterator_range_detail::iterator_range_base" }
%"class.boost::iterator_range_detail::iterator_range_base" = type { %"class.boost::iterator_range_detail::iterator_range_base.4" }
%"class.boost::iterator_range_detail::iterator_range_base.4" = type { %"class.boost::iterator_range_detail::iterator_range_base.5" }
%"class.boost::iterator_range_detail::iterator_range_base.5" = type { ptr, ptr }
%"struct.std::_Head_base.31" = type { %"class.boost::iterator_range.32" }
%"class.boost::iterator_range.32" = type { %"class.boost::iterator_range_detail::iterator_range_base.33" }
%"class.boost::iterator_range_detail::iterator_range_base.33" = type { %"class.boost::iterator_range_detail::iterator_range_base.34" }
%"class.boost::iterator_range_detail::iterator_range_base.34" = type { %"class.boost::iterator_range_detail::iterator_range_base.35" }
%"class.boost::iterator_range_detail::iterator_range_base.35" = type { %"class.boost::iterators::transform_iterator.18", %"class.boost::iterators::transform_iterator.18" }
%"struct.std::_Head_base.36" = type { %"class.boost::iterator_range.37" }
%"class.boost::iterator_range.37" = type { %"class.boost::iterator_range_detail::iterator_range_base.38" }
%"class.boost::iterator_range_detail::iterator_range_base.38" = type { %"class.boost::iterator_range_detail::iterator_range_base.39" }
%"class.boost::iterator_range_detail::iterator_range_base.39" = type { %"class.boost::iterator_range_detail::iterator_range_base.40" }
%"class.boost::iterator_range_detail::iterator_range_base.40" = type { %"class.boost::iterators::transform_iterator", %"class.boost::iterators::transform_iterator" }
%"struct.std::_Head_base.12" = type { i32 }
%"struct.amgcl::amg<amgcl::backend::builtin<double>, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>::params" = type <{ %"class.boost::property_tree::basic_ptree", %"class.boost::property_tree::basic_ptree", i32, i8, [3 x i8], i32, i32, i32, i32, i32, i8, [3 x i8] }>
%"class.boost::property_tree::basic_ptree" = type { %"class.std::__cxx11::basic_string", ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }
%"struct.amgcl::detail::empty_params" = type { i8 }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #0

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN5boost19make_iterator_rangeIPKdEENS_14iterator_rangeIT_EES4_S4_(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5amgcl3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS4_10relaxation7wrapperEE6paramsC2ERKN5boost13property_tree11basic_ptreeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESJ_St4lessISJ_EEE(ptr noundef nonnull align 8 dereferenceable(109), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local ptr @amgcl_precond_create_f(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #4 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.boost::iterators::transform_iterator", align 8
  %13 = alloca %class.anon, align 1
  %14 = alloca %"class.boost::iterators::transform_iterator.18", align 8
  %15 = alloca %class.anon.25, align 1
  %16 = alloca %"class.std::tuple.27", align 8
  %17 = alloca %"class.boost::iterator_range.37", align 8
  %18 = alloca %"class.boost::iterators::transform_iterator", align 8
  %19 = alloca %"class.boost::iterators::transform_iterator", align 8
  %20 = alloca %"class.boost::iterators::transform_iterator", align 8
  %21 = alloca %"class.boost::iterator_range.32", align 8
  %22 = alloca %"class.boost::iterators::transform_iterator.18", align 8
  %23 = alloca %"class.boost::iterators::transform_iterator.18", align 8
  %24 = alloca %"class.boost::iterator_range", align 8
  %25 = alloca %"struct.amgcl::amg<amgcl::backend::builtin<double>, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>::params", align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca %"struct.amgcl::detail::empty_params", align 1
  %29 = alloca i1, align 1
  %30 = alloca i32, align 4
  %31 = alloca %"struct.amgcl::amg<amgcl::backend::builtin<double>, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>::params", align 8
  %32 = alloca %"struct.amgcl::detail::empty_params", align 1
  %33 = alloca i1, align 1
  store i32 %0, ptr %7, align 4, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  %34 = load ptr, ptr %8, align 8, !tbaa !9
  %35 = call ptr @"_ZN5boost9iterators23make_transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiEENS0_18transform_iteratorIT_T0_NS_11use_defaultES8_EES7_S6_"(ptr noundef %34)
  %36 = getelementptr inbounds %"class.boost::iterators::transform_iterator", ptr %12, i32 0, i32 0
  %37 = getelementptr inbounds %"class.boost::iterators::iterator_adaptor", ptr %36, i32 0, i32 0
  store ptr %35, ptr %37, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  %38 = load ptr, ptr %9, align 8, !tbaa !9
  %39 = call ptr @"_ZN5boost9iterators23make_transform_iteratorIZ22amgcl_precond_create_fE3$_1PKiEENS0_18transform_iteratorIT_T0_NS_11use_defaultES8_EES7_S6_"(ptr noundef %38)
  %40 = getelementptr inbounds %"class.boost::iterators::transform_iterator.18", ptr %14, i32 0, i32 0
  %41 = getelementptr inbounds %"class.boost::iterators::iterator_adaptor.19", ptr %40, i32 0, i32 0
  store ptr %39, ptr %41, align 8
  call void @llvm.lifetime.start.p0(i64 88, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %12, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  %42 = load i32, ptr %7, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = call ptr @"_ZN5boost9iteratorsplINS0_18transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiNS_11use_defaultES6_EEiNS0_27random_access_traversal_tagEilEENS0_9enable_ifINS0_6detail21is_traversal_at_leastIT1_S8_EET_E4typeERKNS0_15iterator_facadeISE_T0_SC_T2_T3_EENSE_15difference_typeE"(ptr noundef nonnull align 1 dereferenceable(1) %12, i64 noundef %43)
  %45 = getelementptr inbounds %"class.boost::iterators::transform_iterator", ptr %20, i32 0, i32 0
  %46 = getelementptr inbounds %"class.boost::iterators::iterator_adaptor", ptr %45, i32 0, i32 0
  store ptr %44, ptr %46, align 8
  %47 = call ptr @"_ZN5boost9iteratorsplINS0_18transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiNS_11use_defaultES6_EEiNS0_27random_access_traversal_tagEilEENS0_9enable_ifINS0_6detail21is_traversal_at_leastIT1_S8_EET_E4typeERKNS0_15iterator_facadeISE_T0_SC_T2_T3_EENSE_15difference_typeE"(ptr noundef nonnull align 1 dereferenceable(1) %20, i64 noundef 1)
  %48 = getelementptr inbounds %"class.boost::iterators::transform_iterator", ptr %19, i32 0, i32 0
  %49 = getelementptr inbounds %"class.boost::iterators::iterator_adaptor", ptr %48, i32 0, i32 0
  store ptr %47, ptr %49, align 8
  %50 = getelementptr inbounds %"class.boost::iterators::transform_iterator", ptr %18, i32 0, i32 0
  %51 = getelementptr inbounds %"class.boost::iterators::iterator_adaptor", ptr %50, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8
  %53 = getelementptr inbounds %"class.boost::iterators::transform_iterator", ptr %19, i32 0, i32 0
  %54 = getelementptr inbounds %"class.boost::iterators::iterator_adaptor", ptr %53, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8
  call void @"_ZN5boost19make_iterator_rangeINS_9iterators18transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiNS_11use_defaultES6_EEEENS_14iterator_rangeIT_EES9_S9_"(ptr dead_on_unwind writable sret(%"class.boost::iterator_range.37") align 8 %17, ptr %52, ptr %55)
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %14, i64 16, i1 false)
  %56 = load ptr, ptr %8, align 8, !tbaa !9
  %57 = load i32, ptr %7, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds i32, ptr %56, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = call ptr @"_ZN5boost9iteratorsplINS0_18transform_iteratorIZ22amgcl_precond_create_fE3$_1PKiNS_11use_defaultES6_EEiNS0_27random_access_traversal_tagEilEENS0_9enable_ifINS0_6detail21is_traversal_at_leastIT1_S8_EET_E4typeERKNS0_15iterator_facadeISE_T0_SC_T2_T3_EENSE_15difference_typeE"(ptr noundef nonnull align 1 dereferenceable(1) %14, i64 noundef %61)
  %63 = getelementptr inbounds %"class.boost::iterators::transform_iterator.18", ptr %23, i32 0, i32 0
  %64 = getelementptr inbounds %"class.boost::iterators::iterator_adaptor.19", ptr %63, i32 0, i32 0
  store ptr %62, ptr %64, align 8
  %65 = getelementptr inbounds %"class.boost::iterators::transform_iterator.18", ptr %22, i32 0, i32 0
  %66 = getelementptr inbounds %"class.boost::iterators::iterator_adaptor.19", ptr %65, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8
  %68 = getelementptr inbounds %"class.boost::iterators::transform_iterator.18", ptr %23, i32 0, i32 0
  %69 = getelementptr inbounds %"class.boost::iterators::iterator_adaptor.19", ptr %68, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8
  call void @"_ZN5boost19make_iterator_rangeINS_9iterators18transform_iteratorIZ22amgcl_precond_create_fE3$_1PKiNS_11use_defaultES6_EEEENS_14iterator_rangeIT_EES9_S9_"(ptr dead_on_unwind writable sret(%"class.boost::iterator_range.32") align 8 %21, ptr %67, ptr %70)
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #8
  %71 = load ptr, ptr %10, align 8, !tbaa !9
  %72 = load ptr, ptr %10, align 8, !tbaa !9
  %73 = load ptr, ptr %8, align 8, !tbaa !9
  %74 = load i32, ptr %7, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds i32, ptr %73, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds double, ptr %72, i64 %78
  %80 = call { ptr, ptr } @_ZN5boost19make_iterator_rangeIPKdEENS_14iterator_rangeIT_EES4_S4_(ptr noundef %71, ptr noundef %79)
  %81 = getelementptr inbounds %"class.boost::iterator_range", ptr %24, i32 0, i32 0
  %82 = getelementptr inbounds %"class.boost::iterator_range_detail::iterator_range_base", ptr %81, i32 0, i32 0
  %83 = getelementptr inbounds %"class.boost::iterator_range_detail::iterator_range_base.4", ptr %82, i32 0, i32 0
  %84 = getelementptr inbounds { ptr, ptr }, ptr %83, i32 0, i32 0
  %85 = extractvalue { ptr, ptr } %80, 0
  store ptr %85, ptr %84, align 8
  %86 = getelementptr inbounds { ptr, ptr }, ptr %83, i32 0, i32 1
  %87 = extractvalue { ptr, ptr } %80, 1
  store ptr %87, ptr %86, align 8
  call void @"_ZSt10make_tupleIJRiN5boost14iterator_rangeINS1_9iterators18transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiNS1_11use_defaultES8_EEEENS2_INS4_IZ22amgcl_precond_create_fE3$_1S7_S8_S8_EEEENS2_IPKdEEEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOSK_"(ptr dead_on_unwind writable sret(%"class.std::tuple.27") align 8 %16, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(16) %24)
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  %88 = load ptr, ptr %11, align 8, !tbaa !9
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %108

90:                                               ; preds = %5
  %91 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 136) #9
  store i1 true, ptr %29, align 1
  call void @llvm.lifetime.start.p0(i64 112, ptr %25) #8
  %92 = load ptr, ptr %11, align 8, !tbaa !9
  invoke void @_ZN5amgcl3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS4_10relaxation7wrapperEE6paramsC2ERKN5boost13property_tree11basic_ptreeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESJ_St4lessISJ_EEE(ptr noundef nonnull align 8 dereferenceable(109) %25, ptr noundef nonnull align 8 dereferenceable(40) %92)
          to label %93 unwind label %96

93:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #8
  invoke void @_ZN5amgcl6detail12empty_paramsC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %94 unwind label %100

94:                                               ; preds = %93
  invoke void @"_ZN5amgcl3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS4_10relaxation7wrapperEEC2ISt5tupleIJiN5boost14iterator_rangeINSC_9iterators18transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiNSC_11use_defaultESJ_EEEENSD_INSF_IZ22amgcl_precond_create_fE3$_1SI_SJ_SJ_EEEENSD_IPKdEEEEEERKT_RKNS9_6paramsERKNS_6detail12empty_paramsE"(ptr noundef nonnull align 8 dereferenceable(136) %91, ptr noundef nonnull align 8 dereferenceable(84) %16, ptr noundef nonnull align 8 dereferenceable(109) %25, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %95 unwind label %100

95:                                               ; preds = %94
  store i1 false, ptr %29, align 1
  store ptr %91, ptr %6, align 8
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #8
  call void @_ZN5amgcl3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS4_10relaxation7wrapperEE6paramsD2Ev(ptr noundef nonnull align 8 dereferenceable(109) %25) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr %25) #8
  store i32 1, ptr %30, align 4
  br label %125

96:                                               ; preds = %90
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %26, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %27, align 4
  br label %104

100:                                              ; preds = %94, %93
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %26, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #8
  call void @_ZN5amgcl3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS4_10relaxation7wrapperEE6paramsD2Ev(ptr noundef nonnull align 8 dereferenceable(109) %25) #8
  br label %104

104:                                              ; preds = %100, %96
  call void @llvm.lifetime.end.p0(i64 112, ptr %25) #8
  %105 = load i1, ptr %29, align 1
  br i1 %105, label %106, label %107

106:                                              ; preds = %104
  call void @_ZdlPvm(ptr noundef %91, i64 noundef 136) #10
  br label %107

107:                                              ; preds = %106, %104
  br label %127

108:                                              ; preds = %5
  %109 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 136) #9
  store i1 true, ptr %33, align 1
  call void @llvm.lifetime.start.p0(i64 112, ptr %31) #8
  invoke void @_ZN5amgcl3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS4_10relaxation7wrapperEE6paramsC2Ev(ptr noundef nonnull align 8 dereferenceable(109) %31)
          to label %110 unwind label %113

110:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #8
  invoke void @_ZN5amgcl6detail12empty_paramsC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %111 unwind label %117

111:                                              ; preds = %110
  invoke void @"_ZN5amgcl3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS4_10relaxation7wrapperEEC2ISt5tupleIJiN5boost14iterator_rangeINSC_9iterators18transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiNSC_11use_defaultESJ_EEEENSD_INSF_IZ22amgcl_precond_create_fE3$_1SI_SJ_SJ_EEEENSD_IPKdEEEEEERKT_RKNS9_6paramsERKNS_6detail12empty_paramsE"(ptr noundef nonnull align 8 dereferenceable(136) %109, ptr noundef nonnull align 8 dereferenceable(84) %16, ptr noundef nonnull align 8 dereferenceable(109) %31, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %112 unwind label %117

112:                                              ; preds = %111
  store i1 false, ptr %33, align 1
  store ptr %109, ptr %6, align 8
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #8
  call void @_ZN5amgcl3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS4_10relaxation7wrapperEE6paramsD2Ev(ptr noundef nonnull align 8 dereferenceable(109) %31) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr %31) #8
  store i32 1, ptr %30, align 4
  br label %125

113:                                              ; preds = %108
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %26, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %27, align 4
  br label %121

117:                                              ; preds = %111, %110
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %26, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #8
  call void @_ZN5amgcl3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS4_10relaxation7wrapperEE6paramsD2Ev(ptr noundef nonnull align 8 dereferenceable(109) %31) #8
  br label %121

121:                                              ; preds = %117, %113
  call void @llvm.lifetime.end.p0(i64 112, ptr %31) #8
  %122 = load i1, ptr %33, align 1
  br i1 %122, label %123, label %124

123:                                              ; preds = %121
  call void @_ZdlPvm(ptr noundef %109, i64 noundef 136) #10
  br label %124

124:                                              ; preds = %123, %121
  br label %127

125:                                              ; preds = %112, %95
  call void @llvm.lifetime.end.p0(i64 88, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  %126 = load ptr, ptr %6, align 8
  ret ptr %126

127:                                              ; preds = %124, %107
  call void @llvm.lifetime.end.p0(i64 88, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  br label %128

128:                                              ; preds = %127
  %129 = load ptr, ptr %26, align 8
  %130 = load i32, ptr %27, align 4
  %131 = insertvalue { ptr, i32 } poison, ptr %129, 0
  %132 = insertvalue { ptr, i32 } %131, i32 %130, 1
  resume { ptr, i32 } %132
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZN5boost9iterators23make_transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiEENS0_18transform_iteratorIT_T0_NS_11use_defaultES8_EES7_S6_"(ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZN5boost9iterators23make_transform_iteratorIZ22amgcl_precond_create_fE3$_1PKiEENS0_18transform_iteratorIT_T0_NS_11use_defaultES8_EES7_S6_"(ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZSt10make_tupleIJRiN5boost14iterator_rangeINS1_9iterators18transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiNS1_11use_defaultES8_EEEENS2_INS4_IZ22amgcl_precond_create_fE3$_1S7_S8_S8_EEEENS2_IPKdEEEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOSK_"(ptr dead_on_unwind noalias writable sret(%"class.std::tuple.27") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZN5boost19make_iterator_rangeINS_9iterators18transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiNS_11use_defaultES6_EEEENS_14iterator_rangeIT_EES9_S9_"(ptr dead_on_unwind noalias writable sret(%"class.boost::iterator_range.37") align 8, ptr, ptr) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZN5boost9iteratorsplINS0_18transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiNS_11use_defaultES6_EEiNS0_27random_access_traversal_tagEilEENS0_9enable_ifINS0_6detail21is_traversal_at_leastIT1_S8_EET_E4typeERKNS0_15iterator_facadeISE_T0_SC_T2_T3_EENSE_15difference_typeE"(ptr noundef nonnull align 1 dereferenceable(1), i64 noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZN5boost19make_iterator_rangeINS_9iterators18transform_iteratorIZ22amgcl_precond_create_fE3$_1PKiNS_11use_defaultES6_EEEENS_14iterator_rangeIT_EES9_S9_"(ptr dead_on_unwind noalias writable sret(%"class.boost::iterator_range.32") align 8, ptr, ptr) #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZN5boost9iteratorsplINS0_18transform_iteratorIZ22amgcl_precond_create_fE3$_1PKiNS_11use_defaultES6_EEiNS0_27random_access_traversal_tagEilEENS0_9enable_ifINS0_6detail21is_traversal_at_leastIT1_S8_EET_E4typeERKNS0_15iterator_facadeISE_T0_SC_T2_T3_EENSE_15difference_typeE"(ptr noundef nonnull align 1 dereferenceable(1), i64 noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN5amgcl3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS4_10relaxation7wrapperEEC2ISt5tupleIJiN5boost14iterator_rangeINSC_9iterators18transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiNSC_11use_defaultESJ_EEEENSD_INSF_IZ22amgcl_precond_create_fE3$_1SI_SJ_SJ_EEEENSD_IPKdEEEEEERKT_RKNS9_6paramsERKNS_6detail12empty_paramsE"(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(84), ptr noundef nonnull align 8 dereferenceable(109), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

attributes #0 = { nobuiltin 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 #1 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !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.boost::iterators::transform_iterator" = type <{ %"class.boost::iterators::iterator_adaptor", [8 x i8] }>
%"class.boost::iterators::iterator_adaptor" = type { ptr }
%"class.boost::iterators::transform_iterator.18" = type <{ %"class.boost::iterators::iterator_adaptor.19", [8 x i8] }>
%"class.boost::iterators::iterator_adaptor.19" = type { ptr }
%"class.std::tuple.27" = type { %"struct.std::_Tuple_impl.base.41", [4 x i8] }
%"struct.std::_Tuple_impl.base.41" = type <{ %"struct.std::_Tuple_impl.29", %"struct.std::_Head_base.12" }>
%"struct.std::_Tuple_impl.29" = type { %"struct.std::_Tuple_impl.30", %"struct.std::_Head_base.36" }
%"struct.std::_Tuple_impl.30" = type { %"struct.std::_Tuple_impl.3", %"struct.std::_Head_base.31" }
%"struct.std::_Tuple_impl.3" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { %"class.boost::iterator_range" }
%"class.boost::iterator_range" = type { %"class.boost::iterator_range_detail::iterator_range_base" }
%"class.boost::iterator_range_detail::iterator_range_base" = type { %"class.boost::iterator_range_detail::iterator_range_base.4" }
%"class.boost::iterator_range_detail::iterator_range_base.4" = type { %"class.boost::iterator_range_detail::iterator_range_base.5" }
%"class.boost::iterator_range_detail::iterator_range_base.5" = type { ptr, ptr }
%"struct.std::_Head_base.31" = type { %"class.boost::iterator_range.32" }
%"class.boost::iterator_range.32" = type { %"class.boost::iterator_range_detail::iterator_range_base.33" }
%"class.boost::iterator_range_detail::iterator_range_base.33" = type { %"class.boost::iterator_range_detail::iterator_range_base.34" }
%"class.boost::iterator_range_detail::iterator_range_base.34" = type { %"class.boost::iterator_range_detail::iterator_range_base.35" }
%"class.boost::iterator_range_detail::iterator_range_base.35" = type { %"class.boost::iterators::transform_iterator.18", %"class.boost::iterators::transform_iterator.18" }
%"struct.std::_Head_base.36" = type { %"class.boost::iterator_range.37" }
%"class.boost::iterator_range.37" = type { %"class.boost::iterator_range_detail::iterator_range_base.38" }
%"class.boost::iterator_range_detail::iterator_range_base.38" = type { %"class.boost::iterator_range_detail::iterator_range_base.39" }
%"class.boost::iterator_range_detail::iterator_range_base.39" = type { %"class.boost::iterator_range_detail::iterator_range_base.40" }
%"class.boost::iterator_range_detail::iterator_range_base.40" = type { %"class.boost::iterators::transform_iterator", %"class.boost::iterators::transform_iterator" }
%"struct.std::_Head_base.12" = type { i32 }
%"struct.amgcl::amg<amgcl::backend::builtin<double>, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>::params" = type <{ %"class.boost::property_tree::basic_ptree", %"class.boost::property_tree::basic_ptree", i32, i8, [3 x i8], i32, i32, i32, i32, i32, i8, [3 x i8] }>
%"class.boost::property_tree::basic_ptree" = type { %"class.std::__cxx11::basic_string", ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }
%"struct.amgcl::detail::empty_params" = type { i8 }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN5boost19make_iterator_rangeIPKdEENS_14iterator_rangeIT_EES4_S4_(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5amgcl3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS4_10relaxation7wrapperEE6paramsC2ERKN5boost13property_tree11basic_ptreeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESJ_St4lessISJ_EEE(ptr noundef nonnull align 8 dereferenceable(109), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #4 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull ptr @amgcl_precond_create_f(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca %"class.boost::iterators::transform_iterator", align 8
  %8 = alloca %"class.boost::iterators::transform_iterator.18", align 8
  %9 = alloca %"class.std::tuple.27", align 8
  %10 = alloca %"class.boost::iterator_range.37", align 8
  %11 = alloca %"class.boost::iterators::transform_iterator", align 8
  %12 = alloca %"class.boost::iterator_range.32", align 8
  %13 = alloca %"class.boost::iterator_range", align 8
  %14 = alloca %"struct.amgcl::amg<amgcl::backend::builtin<double>, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>::params", align 8
  %15 = alloca %"struct.amgcl::detail::empty_params", align 1
  %16 = alloca %"struct.amgcl::amg<amgcl::backend::builtin<double>, amgcl::runtime::coarsening::wrapper, amgcl::runtime::relaxation::wrapper>::params", align 8
  %17 = alloca %"struct.amgcl::detail::empty_params", align 1
  store i32 %0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %18 = tail call ptr @"_ZN5boost9iterators23make_transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiEENS0_18transform_iteratorIT_T0_NS_11use_defaultES8_EES7_S6_"(ptr noundef %1)
  store ptr %18, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  %19 = tail call ptr @"_ZN5boost9iterators23make_transform_iteratorIZ22amgcl_precond_create_fE3$_1PKiEENS0_18transform_iteratorIT_T0_NS_11use_defaultES8_EES7_S6_"(ptr noundef %2)
  store ptr %19, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  %20 = sext i32 %0 to i64
  %21 = call ptr @"_ZN5boost9iteratorsplINS0_18transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiNS_11use_defaultES6_EEiNS0_27random_access_traversal_tagEilEENS0_9enable_ifINS0_6detail21is_traversal_at_leastIT1_S8_EET_E4typeERKNS0_15iterator_facadeISE_T0_SC_T2_T3_EENSE_15difference_typeE"(ptr noundef nonnull align 1 dereferenceable(1) %7, i64 noundef %20)
  store ptr %21, ptr %11, align 8
  %22 = call ptr @"_ZN5boost9iteratorsplINS0_18transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiNS_11use_defaultES6_EEiNS0_27random_access_traversal_tagEilEENS0_9enable_ifINS0_6detail21is_traversal_at_leastIT1_S8_EET_E4typeERKNS0_15iterator_facadeISE_T0_SC_T2_T3_EENSE_15difference_typeE"(ptr noundef nonnull align 1 dereferenceable(1) %11, i64 noundef 1)
  call void @"_ZN5boost19make_iterator_rangeINS_9iterators18transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiNS_11use_defaultES6_EEEENS_14iterator_rangeIT_EES9_S9_"(ptr dead_on_unwind nonnull writable sret(%"class.boost::iterator_range.37") align 8 %10, ptr %18, ptr %22)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #7
  %23 = getelementptr inbounds i32, ptr %1, i64 %20
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = call ptr @"_ZN5boost9iteratorsplINS0_18transform_iteratorIZ22amgcl_precond_create_fE3$_1PKiNS_11use_defaultES6_EEiNS0_27random_access_traversal_tagEilEENS0_9enable_ifINS0_6detail21is_traversal_at_leastIT1_S8_EET_E4typeERKNS0_15iterator_facadeISE_T0_SC_T2_T3_EENSE_15difference_typeE"(ptr noundef nonnull align 1 dereferenceable(1) %8, i64 noundef %25)
  call void @"_ZN5boost19make_iterator_rangeINS_9iterators18transform_iteratorIZ22amgcl_precond_create_fE3$_1PKiNS_11use_defaultES6_EEEENS_14iterator_rangeIT_EES9_S9_"(ptr dead_on_unwind nonnull writable sret(%"class.boost::iterator_range.32") align 8 %12, ptr %19, ptr %26)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %27 = load i32, ptr %23, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds double, ptr %3, i64 %28
  %30 = call { ptr, ptr } @_ZN5boost19make_iterator_rangeIPKdEENS_14iterator_rangeIT_EES4_S4_(ptr noundef %3, ptr noundef %29)
  %31 = extractvalue { ptr, ptr } %30, 0
  store ptr %31, ptr %13, align 8
  %32 = getelementptr inbounds i8, ptr %13, i64 8
  %33 = extractvalue { ptr, ptr } %30, 1
  store ptr %33, ptr %32, align 8
  call void @"_ZSt10make_tupleIJRiN5boost14iterator_rangeINS1_9iterators18transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiNS1_11use_defaultES8_EEEENS2_INS4_IZ22amgcl_precond_create_fE3$_1S7_S8_S8_EEEENS2_IPKdEEEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOSK_"(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.27") align 8 %9, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(16) %13)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  %.not = icmp eq ptr %4, null
  %34 = call noalias noundef nonnull dereferenceable(136) ptr @_Znwm(i64 noundef 136) #8
  br i1 %.not, label %43, label %35

35:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %14) #7
  invoke void @_ZN5amgcl3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS4_10relaxation7wrapperEE6paramsC2ERKN5boost13property_tree11basic_ptreeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESJ_St4lessISJ_EEE(ptr noundef nonnull align 8 dereferenceable(109) %14, ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %36 unwind label %38

36:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #7
  call void @_ZN5amgcl6detail12empty_paramsC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15)
  invoke void @"_ZN5amgcl3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS4_10relaxation7wrapperEEC2ISt5tupleIJiN5boost14iterator_rangeINSC_9iterators18transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiNSC_11use_defaultESJ_EEEENSD_INSF_IZ22amgcl_precond_create_fE3$_1SI_SJ_SJ_EEEENSD_IPKdEEEEEERKT_RKNS9_6paramsERKNS_6detail12empty_paramsE"(ptr noundef nonnull align 8 dereferenceable(136) %34, ptr noundef nonnull align 8 dereferenceable(84) %9, ptr noundef nonnull align 8 dereferenceable(109) %14, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %37 unwind label %40

37:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #7
  call void @_ZN5amgcl3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS4_10relaxation7wrapperEE6paramsD2Ev(ptr noundef nonnull align 8 dereferenceable(109) %14) #7
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %14) #7
  br label %51

38:                                               ; preds = %35
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %42

40:                                               ; preds = %36
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #7
  call void @_ZN5amgcl3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS4_10relaxation7wrapperEE6paramsD2Ev(ptr noundef nonnull align 8 dereferenceable(109) %14) #7
  br label %42

42:                                               ; preds = %40, %38
  %.pn22 = phi { ptr, i32 } [ %41, %40 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %14) #7
  br label %52

43:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %16) #7
  invoke void @_ZN5amgcl3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS4_10relaxation7wrapperEE6paramsC2Ev(ptr noundef nonnull align 8 dereferenceable(109) %16)
          to label %44 unwind label %46

44:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #7
  call void @_ZN5amgcl6detail12empty_paramsC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17)
  invoke void @"_ZN5amgcl3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS4_10relaxation7wrapperEEC2ISt5tupleIJiN5boost14iterator_rangeINSC_9iterators18transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiNSC_11use_defaultESJ_EEEENSD_INSF_IZ22amgcl_precond_create_fE3$_1SI_SJ_SJ_EEEENSD_IPKdEEEEEERKT_RKNS9_6paramsERKNS_6detail12empty_paramsE"(ptr noundef nonnull align 8 dereferenceable(136) %34, ptr noundef nonnull align 8 dereferenceable(84) %9, ptr noundef nonnull align 8 dereferenceable(109) %16, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %45 unwind label %48

45:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #7
  call void @_ZN5amgcl3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS4_10relaxation7wrapperEE6paramsD2Ev(ptr noundef nonnull align 8 dereferenceable(109) %16) #7
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %16) #7
  br label %51

46:                                               ; preds = %43
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %50

48:                                               ; preds = %44
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #7
  call void @_ZN5amgcl3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS4_10relaxation7wrapperEE6paramsD2Ev(ptr noundef nonnull align 8 dereferenceable(109) %16) #7
  br label %50

50:                                               ; preds = %48, %46
  %.pn = phi { ptr, i32 } [ %49, %48 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %16) #7
  br label %52

51:                                               ; preds = %45, %37
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  ret ptr %34

52:                                               ; preds = %50, %42
  %.pn22.pn = phi { ptr, i32 } [ %.pn22, %42 ], [ %.pn, %50 ]
  call void @_ZdlPvm(ptr noundef nonnull %34, i64 noundef 136) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  resume { ptr, i32 } %.pn22.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZN5boost9iterators23make_transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiEENS0_18transform_iteratorIT_T0_NS_11use_defaultES8_EES7_S6_"(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZN5boost9iterators23make_transform_iteratorIZ22amgcl_precond_create_fE3$_1PKiEENS0_18transform_iteratorIT_T0_NS_11use_defaultES8_EES7_S6_"(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZSt10make_tupleIJRiN5boost14iterator_rangeINS1_9iterators18transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiNS1_11use_defaultES8_EEEENS2_INS4_IZ22amgcl_precond_create_fE3$_1S7_S8_S8_EEEENS2_IPKdEEEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOSK_"(ptr dead_on_unwind noalias writable sret(%"class.std::tuple.27") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZN5boost19make_iterator_rangeINS_9iterators18transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiNS_11use_defaultES6_EEEENS_14iterator_rangeIT_EES9_S9_"(ptr dead_on_unwind noalias writable sret(%"class.boost::iterator_range.37") align 8, ptr, ptr) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZN5boost9iteratorsplINS0_18transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiNS_11use_defaultES6_EEiNS0_27random_access_traversal_tagEilEENS0_9enable_ifINS0_6detail21is_traversal_at_leastIT1_S8_EET_E4typeERKNS0_15iterator_facadeISE_T0_SC_T2_T3_EENSE_15difference_typeE"(ptr noundef nonnull align 1 dereferenceable(1), i64 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZN5boost19make_iterator_rangeINS_9iterators18transform_iteratorIZ22amgcl_precond_create_fE3$_1PKiNS_11use_defaultES6_EEEENS_14iterator_rangeIT_EES9_S9_"(ptr dead_on_unwind noalias writable sret(%"class.boost::iterator_range.32") align 8, ptr, ptr) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZN5boost9iteratorsplINS0_18transform_iteratorIZ22amgcl_precond_create_fE3$_1PKiNS_11use_defaultES6_EEiNS0_27random_access_traversal_tagEilEENS0_9enable_ifINS0_6detail21is_traversal_at_leastIT1_S8_EET_E4typeERKNS0_15iterator_facadeISE_T0_SC_T2_T3_EENSE_15difference_typeE"(ptr noundef nonnull align 1 dereferenceable(1), i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN5amgcl3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS4_10relaxation7wrapperEEC2ISt5tupleIJiN5boost14iterator_rangeINSC_9iterators18transform_iteratorIZ22amgcl_precond_create_fE3$_0PKiNSC_11use_defaultESJ_EEEENSD_INSF_IZ22amgcl_precond_create_fE3$_1SI_SJ_SJ_EEEENSD_IPKdEEEEEERKT_RKNS9_6paramsERKNS_6detail12empty_paramsE"(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(84), ptr noundef nonnull align 8 dereferenceable(109), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

attributes #0 = { nobuiltin 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 #1 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 #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 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass