; LLVM IR from ddemidov/amgcl :: examples (custom_adapter)

; 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.amgcl::profiler" = type { %"class.std::__cxx11::basic_string", [8 x i8], %"struct.amgcl::profiler<>::profile_unit", %"class.std::vector" }
%"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::profiler<>::profile_unit" = type { double, double, %"class.std::map" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, amgcl::profiler<>::profile_unit>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, amgcl::profiler<>::profile_unit>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, amgcl::profiler<>::profile_unit>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, amgcl::profiler<>::profile_unit>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<amgcl::profiler<>::profile_unit *, std::allocator<amgcl::profiler<>::profile_unit *>>::_Vector_impl" }
%"struct.std::_Vector_base<amgcl::profiler<>::profile_unit *, std::allocator<amgcl::profiler<>::profile_unit *>>::_Vector_impl" = type { %"struct.std::_Vector_base<amgcl::profiler<>::profile_unit *, std::allocator<amgcl::profiler<>::profile_unit *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<amgcl::profiler<>::profile_unit *, std::allocator<amgcl::profiler<>::profile_unit *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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 }
%"struct.amgcl::profiler<>::scoped_ticker" = type { ptr }
%"class.std::allocator" = type { i8 }
%class.sparse_matrix = type { i32, i32, %"class.std::vector.7" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::map<int, double>, std::allocator<std::map<int, double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::map<int, double>, std::allocator<std::map<int, double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::map<int, double>, std::allocator<std::map<int, double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::map<int, double>, std::allocator<std::map<int, double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.amgcl::make_solver" = type { %"struct.amgcl::make_solver<amgcl::amg<amgcl::backend::builtin<double>, amgcl::coarsening::aggregation, amgcl::relaxation::spai0>, amgcl::solver::cg<amgcl::backend::builtin<double>>>::params", i64, %"class.amgcl::amg", %"class.amgcl::solver::cg" }
%"struct.amgcl::make_solver<amgcl::amg<amgcl::backend::builtin<double>, amgcl::coarsening::aggregation, amgcl::relaxation::spai0>, amgcl::solver::cg<amgcl::backend::builtin<double>>>::params" = type { %"struct.amgcl::amg<amgcl::backend::builtin<double>, amgcl::coarsening::aggregation, amgcl::relaxation::spai0>::params", %"struct.amgcl::solver::cg<amgcl::backend::builtin<double>>::params" }
%"struct.amgcl::amg<amgcl::backend::builtin<double>, amgcl::coarsening::aggregation, amgcl::relaxation::spai0>::params" = type <{ %"struct.amgcl::coarsening::aggregation<amgcl::backend::builtin<double>>::params", [4 x i8], i32, i8, [3 x i8], i32, i32, i32, i32, i32, i8, [7 x i8] }>
%"struct.amgcl::coarsening::aggregation<amgcl::backend::builtin<double>>::params" = type <{ %"struct.amgcl::coarsening::pointwise_aggregates::params", %"struct.amgcl::coarsening::nullspace_params", float, [4 x i8] }>
%"struct.amgcl::coarsening::pointwise_aggregates::params" = type { %"struct.amgcl::coarsening::plain_aggregates::params", i32 }
%"struct.amgcl::coarsening::plain_aggregates::params" = type { float }
%"struct.amgcl::coarsening::nullspace_params" = type { i32, %"class.std::vector.12" }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.amgcl::solver::cg<amgcl::backend::builtin<double>>::params" = type <{ i64, double, double, i8, i8, [6 x i8] }>
%"class.amgcl::amg" = type { %"struct.amgcl::amg<amgcl::backend::builtin<double>, amgcl::coarsening::aggregation, amgcl::relaxation::spai0>::params", %"class.std::__cxx11::list" }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<amgcl::amg<amgcl::backend::builtin<double>, amgcl::coarsening::aggregation, amgcl::relaxation::spai0>::level, std::allocator<amgcl::amg<amgcl::backend::builtin<double>, amgcl::coarsening::aggregation, amgcl::relaxation::spai0>::level>>::_List_impl" }
%"struct.std::__cxx11::_List_base<amgcl::amg<amgcl::backend::builtin<double>, amgcl::coarsening::aggregation, amgcl::relaxation::spai0>::level, std::allocator<amgcl::amg<amgcl::backend::builtin<double>, amgcl::coarsening::aggregation, amgcl::relaxation::spai0>::level>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.amgcl::solver::cg" = type <{ %"struct.amgcl::solver::cg<amgcl::backend::builtin<double>>::params", i64, %"class.std::shared_ptr", %"class.std::shared_ptr", %"class.std::shared_ptr", %"class.std::shared_ptr", [8 x i8] }>
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.amgcl::detail::empty_params" = type { i8 }
%"class.std::allocator.14" = type { i8 }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.20", %"struct.std::_Head_base.21" }
%"struct.std::_Tuple_impl.20" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { double }
%"struct.std::_Head_base.21" = type { i64 }

@_ZN5amgcl4profE = external dso_local global %"class.amgcl::profiler", align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"struct.amgcl::profiler<>::scoped_ticker", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %class.sparse_matrix, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.amgcl::make_solver", align 8
  %11 = alloca %"struct.amgcl::make_solver<amgcl::amg<amgcl::backend::builtin<double>, amgcl::coarsening::aggregation, amgcl::relaxation::spai0>, amgcl::solver::cg<amgcl::backend::builtin<double>>>::params", align 8
  %12 = alloca %"struct.amgcl::detail::empty_params", align 1
  %13 = alloca %"struct.amgcl::profiler<>::scoped_ticker", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator", align 1
  %16 = alloca %"class.std::vector.12", align 8
  %17 = alloca double, align 8
  %18 = alloca %"class.std::allocator.14", align 1
  %19 = alloca %"class.std::vector.12", align 8
  %20 = alloca double, align 8
  %21 = alloca %"class.std::allocator.14", align 1
  %22 = alloca %"class.std::tuple", align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 10000, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %23 unwind label %30

23:                                               ; preds = %0
  invoke void @_ZN5amgcl8profilerINS_12perf_counter5clockELj2EE10scoped_ticERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"struct.amgcl::profiler<>::scoped_ticker") align 8 %3, ptr noundef nonnull align 8 dereferenceable(128) @_ZN5amgcl4profE, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %24 unwind label %34

24:                                               ; preds = %23
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #6
  invoke void @_ZN13sparse_matrixC2Eii(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 10000, i32 noundef 10000)
          to label %25 unwind label %39

25:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %74, %25
  %27 = load i32, ptr %9, align 4, !tbaa !5
  %28 = icmp slt i32 %27, 10000
  br i1 %28, label %43, label %29

29:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %77

30:                                               ; preds = %0
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %6, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %7, align 4
  br label %38

34:                                               ; preds = %23
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %6, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br label %38

38:                                               ; preds = %34, %30
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #6
  br label %143

39:                                               ; preds = %24
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %6, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %7, align 4
  br label %142

43:                                               ; preds = %26
  %44 = load i32, ptr %9, align 4, !tbaa !5
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %49, label %46

46:                                               ; preds = %43
  %47 = load i32, ptr %9, align 4, !tbaa !5
  %48 = icmp eq i32 %47, 9999
  br i1 %48, label %49, label %58

49:                                               ; preds = %46, %43
  %50 = load i32, ptr %9, align 4, !tbaa !5
  %51 = load i32, ptr %9, align 4, !tbaa !5
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN13sparse_matrixclEii(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef %50, i32 noundef %51)
          to label %53 unwind label %54

53:                                               ; preds = %49
  store double 1.000000e+00, ptr %52, align 8, !tbaa !9
  br label %73

54:                                               ; preds = %67, %63, %58, %49
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %6, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %141

58:                                               ; preds = %46
  %59 = load i32, ptr %9, align 4, !tbaa !5
  %60 = load i32, ptr %9, align 4, !tbaa !5
  %61 = sub nsw i32 %60, 1
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN13sparse_matrixclEii(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef %59, i32 noundef %61)
          to label %63 unwind label %54

63:                                               ; preds = %58
  store double -1.000000e+00, ptr %62, align 8, !tbaa !9
  %64 = load i32, ptr %9, align 4, !tbaa !5
  %65 = load i32, ptr %9, align 4, !tbaa !5
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN13sparse_matrixclEii(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef %64, i32 noundef %65)
          to label %67 unwind label %54

67:                                               ; preds = %63
  store double 2.000000e+00, ptr %66, align 8, !tbaa !9
  %68 = load i32, ptr %9, align 4, !tbaa !5
  %69 = load i32, ptr %9, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN13sparse_matrixclEii(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef %68, i32 noundef %70)
          to label %72 unwind label %54

72:                                               ; preds = %67
  store double -1.000000e+00, ptr %71, align 8, !tbaa !9
  br label %73

73:                                               ; preds = %72, %53
  br label %74

74:                                               ; preds = %73
  %75 = load i32, ptr %9, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %9, align 4, !tbaa !5
  br label %26, !llvm.loop !11

77:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 352, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 120, ptr %11) #6
  invoke void @_ZN5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEENS_6solver2cgIS4_NSA_6detail21default_inner_productEEEE6paramsC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %11)
          to label %78 unwind label %97

78:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  invoke void @_ZN5amgcl6detail12empty_paramsC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %79 unwind label %101

79:                                               ; preds = %78
  invoke void @_ZN5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEENS_6solver2cgIS4_NSA_6detail21default_inner_productEEEEC2I13sparse_matrixEERKT_RKNSF_6paramsERKNS_6detail12empty_paramsE(ptr noundef nonnull align 8 dereferenceable(352) %10, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(120) %11, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %80 unwind label %101

80:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @_ZN5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEENS_6solver2cgIS4_NSA_6detail21default_inner_productEEEE6paramsD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %11) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %11) #6
  %81 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZN5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEENS_6solver2cgIS4_NSA_6detail21default_inner_productEEEE7precondEv(ptr noundef nonnull align 8 dereferenceable(352) %10)
          to label %82 unwind label %106

82:                                               ; preds = %80
  %83 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5amgcllsINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEERSoS8_RKNS_3amgIT_T0_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(112) %81)
          to label %84 unwind label %106

84:                                               ; preds = %82
  %85 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %86 unwind label %106

86:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %87 unwind label %110

87:                                               ; preds = %86
  invoke void @_ZN5amgcl8profilerINS_12perf_counter5clockELj2EE10scoped_ticERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"struct.amgcl::profiler<>::scoped_ticker") align 8 %13, ptr noundef nonnull align 8 dereferenceable(128) @_ZN5amgcl4profE, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %88 unwind label %114

88:                                               ; preds = %87
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store double 1.000000e+00, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef 10000, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %89 unwind label %119

89:                                               ; preds = %88
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store double 0.000000e+00, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef 10000, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %90 unwind label %123

90:                                               ; preds = %89
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  invoke void @_ZNK5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEENS_6solver2cgIS4_NSA_6detail21default_inner_productEEEEclISt6vectorIdSaIdEERSJ_EESt5tupleIJmdEERKT_OT0_(ptr dead_on_unwind writable sret(%"class.std::tuple") align 8 %22, ptr noundef nonnull align 8 dereferenceable(352) %10, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %91 unwind label %127

91:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5amgcllsERSoRNS_8profilerINS_12perf_counter5clockELj2EEE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(128) @_ZN5amgcl4profE)
          to label %93 unwind label %131

93:                                               ; preds = %91
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %95 unwind label %131

95:                                               ; preds = %93
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  call void @_ZN5amgcl8profilerINS_12perf_counter5clockELj2EE13scoped_tickerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @_ZN5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEENS_6solver2cgIS4_NSA_6detail21default_inner_productEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(352) %10) #6
  call void @llvm.lifetime.end.p0(i64 352, ptr %10) #6
  call void @_ZN13sparse_matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  call void @_ZN5amgcl8profilerINS_12perf_counter5clockELj2EE13scoped_tickerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %96 = load i32, ptr %1, align 4
  ret i32 %96

97:                                               ; preds = %77
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %6, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %7, align 4
  br label %105

101:                                              ; preds = %79, %78
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %6, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @_ZN5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEENS_6solver2cgIS4_NSA_6detail21default_inner_productEEEE6paramsD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %11) #6
  br label %105

105:                                              ; preds = %101, %97
  call void @llvm.lifetime.end.p0(i64 120, ptr %11) #6
  br label %140

106:                                              ; preds = %84, %82, %80
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %6, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %7, align 4
  br label %139

110:                                              ; preds = %86
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %6, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %7, align 4
  br label %118

114:                                              ; preds = %87
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %6, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %118

118:                                              ; preds = %114, %110
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  br label %138

119:                                              ; preds = %88
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %6, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %7, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %137

123:                                              ; preds = %89
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %6, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %7, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %136

127:                                              ; preds = %90
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %6, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  br label %135

131:                                              ; preds = %93, %91
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %6, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %7, align 4
  br label %135

135:                                              ; preds = %131, %127
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  br label %136

136:                                              ; preds = %135, %123
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  br label %137

137:                                              ; preds = %136, %119
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  call void @_ZN5amgcl8profilerINS_12perf_counter5clockELj2EE13scoped_tickerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br label %138

138:                                              ; preds = %137, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %139

139:                                              ; preds = %138, %106
  call void @_ZN5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEENS_6solver2cgIS4_NSA_6detail21default_inner_productEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(352) %10) #6
  br label %140

140:                                              ; preds = %139, %105
  call void @llvm.lifetime.end.p0(i64 352, ptr %10) #6
  br label %141

141:                                              ; preds = %140, %54
  call void @_ZN13sparse_matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %142

142:                                              ; preds = %141, %39
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  call void @_ZN5amgcl8profilerINS_12perf_counter5clockELj2EE13scoped_tickerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  br label %143

143:                                              ; preds = %142, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %144

144:                                              ; preds = %143
  %145 = load ptr, ptr %6, align 8
  %146 = load i32, ptr %7, align 4
  %147 = insertvalue { ptr, i32 } poison, ptr %145, 0
  %148 = insertvalue { ptr, i32 } %147, i32 %146, 1
  resume { ptr, i32 } %148
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5amgcl8profilerINS_12perf_counter5clockELj2EE10scoped_ticERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"struct.amgcl::profiler<>::scoped_ticker") align 8, ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEENS_6solver2cgIS4_NSA_6detail21default_inner_productEEEEC2I13sparse_matrixEERKT_RKNSF_6paramsERKNS_6detail12empty_paramsE(ptr noundef nonnull align 8 dereferenceable(352), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN5amgcllsINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEERSoS8_RKNS_3amgIT_T0_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(112)) #2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEENS_6solver2cgIS4_NSA_6detail21default_inner_productEEEEclISt6vectorIdSaIdEERSJ_EESt5tupleIJmdEERKT_OT0_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 8, ptr noundef nonnull align 8 dereferenceable(352), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN5amgcllsERSoRNS_8profilerINS_12perf_counter5clockELj2EEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(128)) #2

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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

%"class.amgcl::profiler" = type { %"class.std::__cxx11::basic_string", [8 x i8], %"struct.amgcl::profiler<>::profile_unit", %"class.std::vector" }
%"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::profiler<>::profile_unit" = type { double, double, %"class.std::map" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, amgcl::profiler<>::profile_unit>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, amgcl::profiler<>::profile_unit>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, amgcl::profiler<>::profile_unit>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, amgcl::profiler<>::profile_unit>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<amgcl::profiler<>::profile_unit *, std::allocator<amgcl::profiler<>::profile_unit *>>::_Vector_impl" }
%"struct.std::_Vector_base<amgcl::profiler<>::profile_unit *, std::allocator<amgcl::profiler<>::profile_unit *>>::_Vector_impl" = type { %"struct.std::_Vector_base<amgcl::profiler<>::profile_unit *, std::allocator<amgcl::profiler<>::profile_unit *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<amgcl::profiler<>::profile_unit *, std::allocator<amgcl::profiler<>::profile_unit *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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 }
%"struct.amgcl::profiler<>::scoped_ticker" = type { ptr }
%"class.std::allocator" = type { i8 }
%class.sparse_matrix = type { i32, i32, %"class.std::vector.7" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<std::map<int, double>, std::allocator<std::map<int, double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::map<int, double>, std::allocator<std::map<int, double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::map<int, double>, std::allocator<std::map<int, double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::map<int, double>, std::allocator<std::map<int, double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.amgcl::make_solver" = type { %"struct.amgcl::make_solver<amgcl::amg<amgcl::backend::builtin<double>, amgcl::coarsening::aggregation, amgcl::relaxation::spai0>, amgcl::solver::cg<amgcl::backend::builtin<double>>>::params", i64, %"class.amgcl::amg", %"class.amgcl::solver::cg" }
%"struct.amgcl::make_solver<amgcl::amg<amgcl::backend::builtin<double>, amgcl::coarsening::aggregation, amgcl::relaxation::spai0>, amgcl::solver::cg<amgcl::backend::builtin<double>>>::params" = type { %"struct.amgcl::amg<amgcl::backend::builtin<double>, amgcl::coarsening::aggregation, amgcl::relaxation::spai0>::params", %"struct.amgcl::solver::cg<amgcl::backend::builtin<double>>::params" }
%"struct.amgcl::amg<amgcl::backend::builtin<double>, amgcl::coarsening::aggregation, amgcl::relaxation::spai0>::params" = type <{ %"struct.amgcl::coarsening::aggregation<amgcl::backend::builtin<double>>::params", [4 x i8], i32, i8, [3 x i8], i32, i32, i32, i32, i32, i8, [7 x i8] }>
%"struct.amgcl::coarsening::aggregation<amgcl::backend::builtin<double>>::params" = type <{ %"struct.amgcl::coarsening::pointwise_aggregates::params", %"struct.amgcl::coarsening::nullspace_params", float, [4 x i8] }>
%"struct.amgcl::coarsening::pointwise_aggregates::params" = type { %"struct.amgcl::coarsening::plain_aggregates::params", i32 }
%"struct.amgcl::coarsening::plain_aggregates::params" = type { float }
%"struct.amgcl::coarsening::nullspace_params" = type { i32, %"class.std::vector.12" }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.amgcl::solver::cg<amgcl::backend::builtin<double>>::params" = type <{ i64, double, double, i8, i8, [6 x i8] }>
%"class.amgcl::amg" = type { %"struct.amgcl::amg<amgcl::backend::builtin<double>, amgcl::coarsening::aggregation, amgcl::relaxation::spai0>::params", %"class.std::__cxx11::list" }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<amgcl::amg<amgcl::backend::builtin<double>, amgcl::coarsening::aggregation, amgcl::relaxation::spai0>::level, std::allocator<amgcl::amg<amgcl::backend::builtin<double>, amgcl::coarsening::aggregation, amgcl::relaxation::spai0>::level>>::_List_impl" }
%"struct.std::__cxx11::_List_base<amgcl::amg<amgcl::backend::builtin<double>, amgcl::coarsening::aggregation, amgcl::relaxation::spai0>::level, std::allocator<amgcl::amg<amgcl::backend::builtin<double>, amgcl::coarsening::aggregation, amgcl::relaxation::spai0>::level>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.amgcl::solver::cg" = type <{ %"struct.amgcl::solver::cg<amgcl::backend::builtin<double>>::params", i64, %"class.std::shared_ptr", %"class.std::shared_ptr", %"class.std::shared_ptr", %"class.std::shared_ptr", [8 x i8] }>
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.amgcl::detail::empty_params" = type { i8 }
%"class.std::allocator.14" = type { i8 }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.20", %"struct.std::_Head_base.21" }
%"struct.std::_Tuple_impl.20" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { double }
%"struct.std::_Head_base.21" = type { i64 }

@_ZN5amgcl4profE = external dso_local global %"class.amgcl::profiler", align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"struct.amgcl::profiler<>::scoped_ticker", align 8
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::allocator", align 1
  %4 = alloca %class.sparse_matrix, align 8
  %5 = alloca %"class.amgcl::make_solver", align 8
  %6 = alloca %"struct.amgcl::make_solver<amgcl::amg<amgcl::backend::builtin<double>, amgcl::coarsening::aggregation, amgcl::relaxation::spai0>, amgcl::solver::cg<amgcl::backend::builtin<double>>>::params", align 8
  %7 = alloca %"struct.amgcl::detail::empty_params", align 1
  %8 = alloca %"struct.amgcl::profiler<>::scoped_ticker", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca %"class.std::vector.12", align 8
  %12 = alloca double, align 8
  %13 = alloca %"class.std::allocator.14", align 1
  %14 = alloca %"class.std::vector.12", align 8
  %15 = alloca double, align 8
  %16 = alloca %"class.std::allocator.14", align 1
  %17 = alloca %"class.std::tuple", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %18 unwind label %21

18:                                               ; preds = %0
  invoke void @_ZN5amgcl8profilerINS_12perf_counter5clockELj2EE10scoped_ticERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"struct.amgcl::profiler<>::scoped_ticker") align 8 %1, ptr noundef nonnull align 8 dereferenceable(128) @_ZN5amgcl4profE, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %19 unwind label %23

19:                                               ; preds = %18
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  invoke void @_ZN13sparse_matrixC2Eii(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 10000, i32 noundef 10000)
          to label %.preheader unwind label %26

20:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 352, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %6) #6
  invoke void @_ZN5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEENS_6solver2cgIS4_NSA_6detail21default_inner_productEEEE6paramsC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %6)
          to label %43 unwind label %59

21:                                               ; preds = %0
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %25

23:                                               ; preds = %18
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  br label %25

25:                                               ; preds = %23, %21
  %.pn = phi { ptr, i32 } [ %24, %23 ], [ %22, %21 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  br label %87

26:                                               ; preds = %19
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %86

.preheader:                                       ; preds = %19, %42
  %.044 = phi i32 [ %.pre-phi, %42 ], [ 0, %19 ]
  switch i32 %.044, label %33 [
    i32 9999, label %28
    i32 0, label %28
  ]

28:                                               ; preds = %.preheader, %.preheader
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN13sparse_matrixclEii(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef %.044, i32 noundef %.044)
          to label %30 unwind label %31

30:                                               ; preds = %28
  store double 1.000000e+00, ptr %29, align 8, !tbaa !5
  %.pre = add nuw nsw i32 %.044, 1
  br label %42

31:                                               ; preds = %38, %36, %33, %28
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %85

33:                                               ; preds = %.preheader
  %34 = add nsw i32 %.044, -1
  %35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN13sparse_matrixclEii(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef %.044, i32 noundef %34)
          to label %36 unwind label %31

36:                                               ; preds = %33
  store double -1.000000e+00, ptr %35, align 8, !tbaa !5
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN13sparse_matrixclEii(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef %.044, i32 noundef %.044)
          to label %38 unwind label %31

38:                                               ; preds = %36
  store double 2.000000e+00, ptr %37, align 8, !tbaa !5
  %39 = add nuw nsw i32 %.044, 1
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN13sparse_matrixclEii(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef %.044, i32 noundef %39)
          to label %41 unwind label %31

41:                                               ; preds = %38
  store double -1.000000e+00, ptr %40, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %30, %41
  %.pre-phi = phi i32 [ %.pre, %30 ], [ %39, %41 ]
  %exitcond.not = icmp eq i32 %.pre-phi, 10000
  br i1 %exitcond.not, label %20, label %.preheader, !llvm.loop !9

43:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @_ZN5amgcl6detail12empty_paramsC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7)
  invoke void @_ZN5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEENS_6solver2cgIS4_NSA_6detail21default_inner_productEEEEC2I13sparse_matrixEERKT_RKNSF_6paramsERKNS_6detail12empty_paramsE(ptr noundef nonnull align 8 dereferenceable(352) %5, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(120) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %44 unwind label %61

44:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @_ZN5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEENS_6solver2cgIS4_NSA_6detail21default_inner_productEEEE6paramsD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %6) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %6) #6
  %45 = call noundef nonnull align 8 dereferenceable(112) ptr @_ZN5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEENS_6solver2cgIS4_NSA_6detail21default_inner_productEEEE7precondEv(ptr noundef nonnull align 8 dereferenceable(352) %5)
  %46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5amgcllsINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEERSoS8_RKNS_3amgIT_T0_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(112) %45)
          to label %47 unwind label %64

47:                                               ; preds = %44
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %49 unwind label %64

49:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %50 unwind label %66

50:                                               ; preds = %49
  invoke void @_ZN5amgcl8profilerINS_12perf_counter5clockELj2EE10scoped_ticERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"struct.amgcl::profiler<>::scoped_ticker") align 8 %8, ptr noundef nonnull align 8 dereferenceable(128) @_ZN5amgcl4profE, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %51 unwind label %68

51:                                               ; preds = %50
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  store double 1.000000e+00, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 10000, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %52 unwind label %71

52:                                               ; preds = %51
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  store double 0.000000e+00, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 10000, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %53 unwind label %73

53:                                               ; preds = %52
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #6
  invoke void @_ZNK5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEENS_6solver2cgIS4_NSA_6detail21default_inner_productEEEEclISt6vectorIdSaIdEERSJ_EESt5tupleIJmdEERKT_OT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 8 %17, ptr noundef nonnull align 8 dereferenceable(352) %5, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %54 unwind label %75

54:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  %55 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN5amgcllsERSoRNS_8profilerINS_12perf_counter5clockELj2EEE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(128) @_ZN5amgcl4profE)
          to label %56 unwind label %77

56:                                               ; preds = %54
  %57 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %58 unwind label %77

58:                                               ; preds = %56
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  call void @_ZN5amgcl8profilerINS_12perf_counter5clockELj2EE13scoped_tickerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @_ZN5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEENS_6solver2cgIS4_NSA_6detail21default_inner_productEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(352) %5) #6
  call void @llvm.lifetime.end.p0(i64 352, ptr nonnull %5) #6
  call void @_ZN13sparse_matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZN5amgcl8profilerINS_12perf_counter5clockELj2EE13scoped_tickerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0

59:                                               ; preds = %20
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %63

61:                                               ; preds = %43
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @_ZN5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEENS_6solver2cgIS4_NSA_6detail21default_inner_productEEEE6paramsD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %6) #6
  br label %63

63:                                               ; preds = %61, %59
  %.pn29 = phi { ptr, i32 } [ %62, %61 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %6) #6
  br label %84

64:                                               ; preds = %47, %44
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %83

66:                                               ; preds = %49
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %70

68:                                               ; preds = %50
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %70

70:                                               ; preds = %68, %66
  %.pn31 = phi { ptr, i32 } [ %69, %68 ], [ %67, %66 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  br label %82

71:                                               ; preds = %51
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %81

73:                                               ; preds = %52
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %80

75:                                               ; preds = %53
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  br label %79

77:                                               ; preds = %56, %54
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %79

79:                                               ; preds = %77, %75
  %.pn33 = phi { ptr, i32 } [ %78, %77 ], [ %76, %75 ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  br label %80

80:                                               ; preds = %79, %73
  %.pn33.pn = phi { ptr, i32 } [ %.pn33, %79 ], [ %74, %73 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  br label %81

81:                                               ; preds = %80, %71
  %.pn33.pn.pn = phi { ptr, i32 } [ %.pn33.pn, %80 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  call void @_ZN5amgcl8profilerINS_12perf_counter5clockELj2EE13scoped_tickerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br label %82

82:                                               ; preds = %81, %70
  %.pn33.pn.pn.pn = phi { ptr, i32 } [ %.pn33.pn.pn, %81 ], [ %.pn31, %70 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %83

83:                                               ; preds = %82, %64
  %.pn33.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn33.pn.pn.pn, %82 ], [ %65, %64 ]
  call void @_ZN5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEENS_6solver2cgIS4_NSA_6detail21default_inner_productEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(352) %5) #6
  br label %84

84:                                               ; preds = %83, %63
  %.pn33.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn33.pn.pn.pn.pn, %83 ], [ %.pn29, %63 ]
  call void @llvm.lifetime.end.p0(i64 352, ptr nonnull %5) #6
  br label %85

85:                                               ; preds = %84, %31
  %.pn40 = phi { ptr, i32 } [ %32, %31 ], [ %.pn33.pn.pn.pn.pn.pn, %84 ]
  call void @_ZN13sparse_matrixD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  br label %86

86:                                               ; preds = %85, %26
  %.pn40.pn = phi { ptr, i32 } [ %.pn40, %85 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZN5amgcl8profilerINS_12perf_counter5clockELj2EE13scoped_tickerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  br label %87

87:                                               ; preds = %86, %25
  %.pn40.pn.pn = phi { ptr, i32 } [ %.pn40.pn, %86 ], [ %.pn, %25 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn40.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5amgcl8profilerINS_12perf_counter5clockELj2EE10scoped_ticERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"struct.amgcl::profiler<>::scoped_ticker") align 8, ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEENS_6solver2cgIS4_NSA_6detail21default_inner_productEEEEC2I13sparse_matrixEERKT_RKNSF_6paramsERKNS_6detail12empty_paramsE(ptr noundef nonnull align 8 dereferenceable(352), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2EmRKdRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_10coarsening11aggregationENS_10relaxation5spai0EEENS_6solver2cgIS4_NSA_6detail21default_inner_productEEEEclISt6vectorIdSaIdEERSJ_EESt5tupleIJmdEERKT_OT0_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 8, ptr noundef nonnull align 8 dereferenceable(352), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

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

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

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

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

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

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

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

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

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


; Effective O3 passes: GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass