; 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.std::tuple.86" = type { %"struct.std::_Tuple_impl.87" }
%"struct.std::_Tuple_impl.87" = type { %"struct.std::_Tuple_impl.88", %"struct.std::_Head_base.90" }
%"struct.std::_Tuple_impl.88" = type { %"struct.std::_Head_base.89" }
%"struct.std::_Head_base.89" = type { ptr }
%"struct.std::_Head_base.90" = type { ptr }
%struct.conv_info = type { i32, double }
%"class.boost::iterator_range.43" = type { %"class.boost::iterator_range_detail::iterator_range_base.44" }
%"class.boost::iterator_range_detail::iterator_range_base.44" = type { %"class.boost::iterator_range_detail::iterator_range_base.45" }
%"class.boost::iterator_range_detail::iterator_range_base.45" = type { %"class.boost::iterator_range_detail::iterator_range_base.46" }
%"class.boost::iterator_range_detail::iterator_range_base.46" = type { ptr, ptr }
%"class.std::tuple.81" = type { %"struct.std::_Tuple_impl.82" }
%"struct.std::_Tuple_impl.82" = type { %"struct.std::_Tuple_impl.83", %"struct.std::_Head_base.85" }
%"struct.std::_Tuple_impl.83" = type { %"struct.std::_Head_base.84" }
%"struct.std::_Head_base.84" = type { double }
%"struct.std::_Head_base.85" = type { i64 }
%"class.std::tuple.91" = type { %"struct.std::_Tuple_impl.92" }
%"struct.std::_Tuple_impl.92" = type { %"struct.std::_Tuple_impl.1", %"struct.std::_Head_base.85" }
%"struct.std::_Tuple_impl.1" = type { %"struct.std::_Tuple_impl.2", %"struct.std::_Head_base.11" }
%"struct.std::_Tuple_impl.2" = type { %"struct.std::_Tuple_impl.3", %"struct.std::_Head_base.6" }
%"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.6" = type { %"class.boost::iterator_range.7" }
%"class.boost::iterator_range.7" = type { %"class.boost::iterator_range_detail::iterator_range_base.8" }
%"class.boost::iterator_range_detail::iterator_range_base.8" = type { %"class.boost::iterator_range_detail::iterator_range_base.9" }
%"class.boost::iterator_range_detail::iterator_range_base.9" = type { %"class.boost::iterator_range_detail::iterator_range_base.10" }
%"class.boost::iterator_range_detail::iterator_range_base.10" = type { ptr, ptr }
%"struct.std::_Head_base.11" = type { %"class.boost::iterator_range.7" }

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local { i32, double } @amgcl_solver_solve_mtx(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #3 {
  %7 = alloca %struct.conv_info, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca %"class.boost::iterator_range.43", align 8
  %17 = alloca %"class.std::tuple.81", align 8
  %18 = alloca %"class.std::tuple.91", align 8
  %19 = alloca %"class.boost::iterator_range.7", align 8
  %20 = alloca %"class.boost::iterator_range.7", align 8
  %21 = alloca %"class.boost::iterator_range", align 8
  %22 = alloca %"class.boost::iterator_range", align 8
  %23 = alloca %"class.std::tuple.86", align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %24, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %25 = load ptr, ptr %14, align 8, !tbaa !5
  %26 = call noundef i64 @_ZNK5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS5_10relaxation7wrapperEEENS5_6solver7wrapperIS4_NS_6solver6detail21default_inner_productEEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(312) %25)
  store i64 %26, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  %27 = load ptr, ptr %13, align 8, !tbaa !5
  %28 = load ptr, ptr %13, align 8, !tbaa !5
  %29 = load i64, ptr %15, align 8, !tbaa !9
  %30 = getelementptr inbounds double, ptr %28, i64 %29
  %31 = call { ptr, ptr } @_ZN5boost19make_iterator_rangeIPdEENS_14iterator_rangeIT_EES3_S3_(ptr noundef %27, ptr noundef %30)
  %32 = getelementptr inbounds %"class.boost::iterator_range.43", ptr %16, i32 0, i32 0
  %33 = getelementptr inbounds %"class.boost::iterator_range_detail::iterator_range_base.44", ptr %32, i32 0, i32 0
  %34 = getelementptr inbounds %"class.boost::iterator_range_detail::iterator_range_base.45", ptr %33, i32 0, i32 0
  %35 = getelementptr inbounds { ptr, ptr }, ptr %34, i32 0, i32 0
  %36 = extractvalue { ptr, ptr } %31, 0
  store ptr %36, ptr %35, align 8
  %37 = getelementptr inbounds { ptr, ptr }, ptr %34, i32 0, i32 1
  %38 = extractvalue { ptr, ptr } %31, 1
  store ptr %38, ptr %37, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = load i64, ptr %15, align 8, !tbaa !9
  %43 = getelementptr inbounds i32, ptr %41, i64 %42
  %44 = getelementptr inbounds i32, ptr %43, i64 1
  %45 = call { ptr, ptr } @_ZN5boost19make_iterator_rangeIPKiEENS_14iterator_rangeIT_EES4_S4_(ptr noundef %40, ptr noundef %44)
  %46 = getelementptr inbounds %"class.boost::iterator_range.7", ptr %19, i32 0, i32 0
  %47 = getelementptr inbounds %"class.boost::iterator_range_detail::iterator_range_base.8", ptr %46, i32 0, i32 0
  %48 = getelementptr inbounds %"class.boost::iterator_range_detail::iterator_range_base.9", ptr %47, i32 0, i32 0
  %49 = getelementptr inbounds { ptr, ptr }, ptr %48, i32 0, i32 0
  %50 = extractvalue { ptr, ptr } %45, 0
  store ptr %50, ptr %49, align 8
  %51 = getelementptr inbounds { ptr, ptr }, ptr %48, i32 0, i32 1
  %52 = extractvalue { ptr, ptr } %45, 1
  store ptr %52, ptr %51, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = load i64, ptr %15, align 8, !tbaa !9
  %57 = getelementptr inbounds i32, ptr %55, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !11
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds i32, ptr %54, i64 %59
  %61 = call { ptr, ptr } @_ZN5boost19make_iterator_rangeIPKiEENS_14iterator_rangeIT_EES4_S4_(ptr noundef %53, ptr noundef %60)
  %62 = getelementptr inbounds %"class.boost::iterator_range.7", ptr %20, i32 0, i32 0
  %63 = getelementptr inbounds %"class.boost::iterator_range_detail::iterator_range_base.8", ptr %62, i32 0, i32 0
  %64 = getelementptr inbounds %"class.boost::iterator_range_detail::iterator_range_base.9", ptr %63, i32 0, i32 0
  %65 = getelementptr inbounds { ptr, ptr }, ptr %64, i32 0, i32 0
  %66 = extractvalue { ptr, ptr } %61, 0
  store ptr %66, ptr %65, align 8
  %67 = getelementptr inbounds { ptr, ptr }, ptr %64, i32 0, i32 1
  %68 = extractvalue { ptr, ptr } %61, 1
  store ptr %68, ptr %67, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = load i64, ptr %15, align 8, !tbaa !9
  %73 = getelementptr inbounds i32, ptr %71, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !11
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds double, ptr %70, i64 %75
  %77 = call { ptr, ptr } @_ZN5boost19make_iterator_rangeIPKdEENS_14iterator_rangeIT_EES4_S4_(ptr noundef %69, ptr noundef %76)
  %78 = getelementptr inbounds %"class.boost::iterator_range", ptr %21, i32 0, i32 0
  %79 = getelementptr inbounds %"class.boost::iterator_range_detail::iterator_range_base", ptr %78, i32 0, i32 0
  %80 = getelementptr inbounds %"class.boost::iterator_range_detail::iterator_range_base.4", ptr %79, i32 0, i32 0
  %81 = getelementptr inbounds { ptr, ptr }, ptr %80, i32 0, i32 0
  %82 = extractvalue { ptr, ptr } %77, 0
  store ptr %82, ptr %81, align 8
  %83 = getelementptr inbounds { ptr, ptr }, ptr %80, i32 0, i32 1
  %84 = extractvalue { ptr, ptr } %77, 1
  store ptr %84, ptr %83, align 8
  call void @_ZSt10make_tupleIJRmN5boost14iterator_rangeIPKiEES5_NS2_IPKdEEEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOSC_(ptr dead_on_unwind writable sret(%"class.std::tuple.91") align 8 %18, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %21)
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #4
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = load i64, ptr %15, align 8, !tbaa !9
  %88 = getelementptr inbounds double, ptr %86, i64 %87
  %89 = call { ptr, ptr } @_ZN5boost19make_iterator_rangeIPKdEENS_14iterator_rangeIT_EES4_S4_(ptr noundef %85, ptr noundef %88)
  %90 = getelementptr inbounds %"class.boost::iterator_range", ptr %22, i32 0, i32 0
  %91 = getelementptr inbounds %"class.boost::iterator_range_detail::iterator_range_base", ptr %90, i32 0, i32 0
  %92 = getelementptr inbounds %"class.boost::iterator_range_detail::iterator_range_base.4", ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds { ptr, ptr }, ptr %92, i32 0, i32 0
  %94 = extractvalue { ptr, ptr } %89, 0
  store ptr %94, ptr %93, align 8
  %95 = getelementptr inbounds { ptr, ptr }, ptr %92, i32 0, i32 1
  %96 = extractvalue { ptr, ptr } %89, 1
  store ptr %96, ptr %95, align 8
  call void @_ZNK5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS5_10relaxation7wrapperEEENS5_6solver7wrapperIS4_NS_6solver6detail21default_inner_productEEEEclISt5tupleIJmN5boost14iterator_rangeIPKiEESO_NSL_IPKdEEEESR_RNSL_IPdEEEESJ_IJmdEERKT_RKT0_OT1_(ptr dead_on_unwind writable sret(%"class.std::tuple.81") align 8 %17, ptr noundef nonnull align 8 dereferenceable(312) %39, ptr noundef nonnull align 8 dereferenceable(56) %18, ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %16)
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #4
  %97 = getelementptr inbounds %struct.conv_info, ptr %7, i32 0, i32 0
  %98 = getelementptr inbounds %struct.conv_info, ptr %7, i32 0, i32 1
  call void @_ZSt3tieIJidEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind writable sret(%"class.std::tuple.86") align 8 %23, ptr noundef nonnull align 4 dereferenceable(4) %97, ptr noundef nonnull align 8 dereferenceable(8) %98) #4
  %99 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRiRdEEaSImdEENSt9enable_ifIXcl12__assignableIT_T0_EEERS2_E4typeEOS_IJS5_S6_EE(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %17) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  %100 = load { i32, double }, ptr %7, align 8
  ret { i32, double } %100
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS5_10relaxation7wrapperEEENS5_6solver7wrapperIS4_NS_6solver6detail21default_inner_productEEEEclISt5tupleIJmN5boost14iterator_rangeIPKiEESO_NSL_IPKdEEEESR_RNSL_IPdEEEESJ_IJmdEERKT_RKT0_OT1_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple.81") align 8, ptr noundef nonnull align 8 dereferenceable(312), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

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

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

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


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

%"class.std::tuple.86" = type { %"struct.std::_Tuple_impl.87" }
%"struct.std::_Tuple_impl.87" = type { %"struct.std::_Tuple_impl.88", %"struct.std::_Head_base.90" }
%"struct.std::_Tuple_impl.88" = type { %"struct.std::_Head_base.89" }
%"struct.std::_Head_base.89" = type { ptr }
%"struct.std::_Head_base.90" = type { ptr }
%struct.conv_info = type { i32, double }
%"class.boost::iterator_range.43" = type { %"class.boost::iterator_range_detail::iterator_range_base.44" }
%"class.boost::iterator_range_detail::iterator_range_base.44" = type { %"class.boost::iterator_range_detail::iterator_range_base.45" }
%"class.boost::iterator_range_detail::iterator_range_base.45" = type { %"class.boost::iterator_range_detail::iterator_range_base.46" }
%"class.boost::iterator_range_detail::iterator_range_base.46" = type { ptr, ptr }
%"class.std::tuple.81" = type { %"struct.std::_Tuple_impl.82" }
%"struct.std::_Tuple_impl.82" = type { %"struct.std::_Tuple_impl.83", %"struct.std::_Head_base.85" }
%"struct.std::_Tuple_impl.83" = type { %"struct.std::_Head_base.84" }
%"struct.std::_Head_base.84" = type { double }
%"struct.std::_Head_base.85" = type { i64 }
%"class.std::tuple.91" = type { %"struct.std::_Tuple_impl.92" }
%"struct.std::_Tuple_impl.92" = type { %"struct.std::_Tuple_impl.1", %"struct.std::_Head_base.85" }
%"struct.std::_Tuple_impl.1" = type { %"struct.std::_Tuple_impl.2", %"struct.std::_Head_base.11" }
%"struct.std::_Tuple_impl.2" = type { %"struct.std::_Tuple_impl.3", %"struct.std::_Head_base.6" }
%"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.6" = type { %"class.boost::iterator_range.7" }
%"class.boost::iterator_range.7" = type { %"class.boost::iterator_range_detail::iterator_range_base.8" }
%"class.boost::iterator_range_detail::iterator_range_base.8" = type { %"class.boost::iterator_range_detail::iterator_range_base.9" }
%"class.boost::iterator_range_detail::iterator_range_base.9" = type { %"class.boost::iterator_range_detail::iterator_range_base.10" }
%"class.boost::iterator_range_detail::iterator_range_base.10" = type { ptr, ptr }
%"struct.std::_Head_base.11" = type { %"class.boost::iterator_range.7" }

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local { i32, double } @amgcl_solver_solve_mtx(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #3 {
  %7 = alloca %struct.conv_info, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"class.boost::iterator_range.43", align 8
  %10 = alloca %"class.std::tuple.81", align 8
  %11 = alloca %"class.std::tuple.91", align 8
  %12 = alloca %"class.boost::iterator_range.7", align 8
  %13 = alloca %"class.boost::iterator_range.7", align 8
  %14 = alloca %"class.boost::iterator_range", align 8
  %15 = alloca %"class.boost::iterator_range", align 8
  %16 = alloca %"class.std::tuple.86", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %17 = tail call noundef i64 @_ZNK5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS5_10relaxation7wrapperEEENS5_6solver7wrapperIS4_NS_6solver6detail21default_inner_productEEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(312) %0)
  store i64 %17, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #4
  %18 = getelementptr inbounds double, ptr %5, i64 %17
  %19 = tail call { ptr, ptr } @_ZN5boost19make_iterator_rangeIPdEENS_14iterator_rangeIT_EES3_S3_(ptr noundef %5, ptr noundef %18)
  %20 = extractvalue { ptr, ptr } %19, 0
  store ptr %20, ptr %9, align 8
  %21 = getelementptr inbounds i8, ptr %9, i64 8
  %22 = extractvalue { ptr, ptr } %19, 1
  store ptr %22, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #4
  %23 = getelementptr inbounds i32, ptr %1, i64 %17
  %24 = getelementptr inbounds i8, ptr %23, i64 4
  %25 = tail call { ptr, ptr } @_ZN5boost19make_iterator_rangeIPKiEENS_14iterator_rangeIT_EES4_S4_(ptr noundef %1, ptr noundef nonnull %24)
  %26 = extractvalue { ptr, ptr } %25, 0
  store ptr %26, ptr %12, align 8
  %27 = getelementptr inbounds i8, ptr %12, i64 8
  %28 = extractvalue { ptr, ptr } %25, 1
  store ptr %28, ptr %27, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #4
  %29 = load i32, ptr %23, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds i32, ptr %2, i64 %30
  %32 = tail call { ptr, ptr } @_ZN5boost19make_iterator_rangeIPKiEENS_14iterator_rangeIT_EES4_S4_(ptr noundef %2, ptr noundef %31)
  %33 = extractvalue { ptr, ptr } %32, 0
  store ptr %33, ptr %13, align 8
  %34 = getelementptr inbounds i8, ptr %13, i64 8
  %35 = extractvalue { ptr, ptr } %32, 1
  store ptr %35, ptr %34, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #4
  %36 = load i32, ptr %23, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds double, ptr %3, i64 %37
  %39 = tail call { ptr, ptr } @_ZN5boost19make_iterator_rangeIPKdEENS_14iterator_rangeIT_EES4_S4_(ptr noundef %3, ptr noundef %38)
  %40 = extractvalue { ptr, ptr } %39, 0
  store ptr %40, ptr %14, align 8
  %41 = getelementptr inbounds i8, ptr %14, i64 8
  %42 = extractvalue { ptr, ptr } %39, 1
  store ptr %42, ptr %41, align 8
  call void @_ZSt10make_tupleIJRmN5boost14iterator_rangeIPKiEES5_NS2_IPKdEEEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOSC_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.91") align 8 %11, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %14)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #4
  %43 = load i64, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds double, ptr %4, i64 %43
  %45 = call { ptr, ptr } @_ZN5boost19make_iterator_rangeIPKdEENS_14iterator_rangeIT_EES4_S4_(ptr noundef %4, ptr noundef %44)
  %46 = extractvalue { ptr, ptr } %45, 0
  store ptr %46, ptr %15, align 8
  %47 = getelementptr inbounds i8, ptr %15, i64 8
  %48 = extractvalue { ptr, ptr } %45, 1
  store ptr %48, ptr %47, align 8
  call void @_ZNK5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS5_10relaxation7wrapperEEENS5_6solver7wrapperIS4_NS_6solver6detail21default_inner_productEEEEclISt5tupleIJmN5boost14iterator_rangeIPKiEESO_NSL_IPKdEEEESR_RNSL_IPdEEEESJ_IJmdEERKT_RKT0_OT1_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.81") align 8 %10, ptr noundef nonnull align 8 dereferenceable(312) %0, ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %9)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #4
  %49 = getelementptr inbounds i8, ptr %7, i64 8
  call void @_ZSt3tieIJidEESt5tupleIJDpRT_EES3_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple.86") align 8 %16, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 8 dereferenceable(8) %49) #4
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5tupleIJRiRdEEaSImdEENSt9enable_ifIXcl12__assignableIT_T0_EEERS2_E4typeEOS_IJS5_S6_EE(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  %.fca.0.load = load i32, ptr %7, align 8
  %.fca.0.insert = insertvalue { i32, double } poison, i32 %.fca.0.load, 0
  %.fca.1.load = load double, ptr %49, align 8
  %.fca.1.insert = insertvalue { i32, double } %.fca.0.insert, double %.fca.1.load, 1
  ret { i32, double } %.fca.1.insert
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK5amgcl11make_solverINS_3amgINS_7backend7builtinIdllEENS_7runtime10coarsening7wrapperENS5_10relaxation7wrapperEEENS5_6solver7wrapperIS4_NS_6solver6detail21default_inner_productEEEEclISt5tupleIJmN5boost14iterator_rangeIPKiEESO_NSL_IPKdEEEESR_RNSL_IPdEEEESJ_IJmdEERKT_RKT0_OT1_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple.81") align 8, ptr noundef nonnull align 8 dereferenceable(312), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

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


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