; LLVM IR from p4lang/p4c :: lib/match.ll (ZN2P4lsERSoRKNS_7match_tE)

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

%"class.boost::multiprecision::number" = type { %"struct.boost::multiprecision::backends::cpp_int_backend" }
%"struct.boost::multiprecision::backends::cpp_int_backend" = type { %"struct.boost::multiprecision::backends::cpp_int_base.base", [9 x i8] }
%"struct.boost::multiprecision::backends::cpp_int_base.base" = type <{ %"union.boost::multiprecision::backends::cpp_int_base<0, 4294967295, boost::multiprecision::signed_magnitude, boost::multiprecision::unchecked, std::allocator<unsigned long long>>::data_type", i32, i8, i8, i8 }>
%"union.boost::multiprecision::backends::cpp_int_base<0, 4294967295, boost::multiprecision::signed_magnitude, boost::multiprecision::unchecked, std::allocator<unsigned long long>>::data_type" = type { i128 }
%"struct.boost::multiprecision::detail::expression" = type { %"struct.boost::multiprecision::detail::expression.0", ptr }
%"struct.boost::multiprecision::detail::expression.0" = type { ptr, ptr }
%"struct.boost::multiprecision::detail::expression.1" = type <{ %"struct.boost::multiprecision::detail::expression.0", i32, [4 x i8] }>
%"struct.P4::match_t" = type { %"class.boost::multiprecision::number", %"class.boost::multiprecision::number" }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN2P4lsERSoRKNS_7match_tE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 16 dereferenceable(64) %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.boost::multiprecision::number", align 16
  %9 = alloca %"class.boost::multiprecision::number", align 16
  %10 = alloca %"class.boost::multiprecision::number", align 16
  %11 = alloca %"class.boost::multiprecision::number", align 16
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"struct.boost::multiprecision::detail::expression", align 8
  %17 = alloca %"struct.boost::multiprecision::detail::expression.0", align 8
  %18 = alloca %"struct.boost::multiprecision::detail::expression.1", align 8
  %19 = alloca %"struct.boost::multiprecision::detail::expression.0", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = call noundef zeroext i1 @_ZNK2P47match_tcvbEv(ptr noundef nonnull align 16 dereferenceable(64) %20)
  br i1 %21, label %26, label %22

22:                                               ; preds = %2
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef @.str)
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %25, ptr %3, align 8
  br label %121

26:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 4, ptr %7, align 4, !tbaa !9
  %28 = call noundef i32 @_ZN2P4L7chkmaskERKNS_7match_tEi(ptr noundef nonnull align 16 dereferenceable(64) %27, i32 noundef 4)
  store i32 %28, ptr %6, align 4, !tbaa !9
  %29 = icmp sge i32 %28, 0
  br i1 %29, label %30, label %33

30:                                               ; preds = %26
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef @.str.1)
  br label %50

33:                                               ; preds = %26
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 3, ptr %7, align 4, !tbaa !9
  %35 = call noundef i32 @_ZN2P4L7chkmaskERKNS_7match_tEi(ptr noundef nonnull align 16 dereferenceable(64) %34, i32 noundef 3)
  store i32 %35, ptr %6, align 4, !tbaa !9
  %36 = icmp sge i32 %35, 0
  br i1 %36, label %37, label %40

37:                                               ; preds = %33
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef @.str.2)
  br label %49

40:                                               ; preds = %33
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 1, ptr %7, align 4, !tbaa !9
  %42 = call noundef i32 @_ZN2P4L7chkmaskERKNS_7match_tEi(ptr noundef nonnull align 16 dereferenceable(64) %41, i32 noundef 1)
  store i32 %42, ptr %6, align 4, !tbaa !9
  %43 = icmp sge i32 %42, 0
  br i1 %43, label %44, label %47

44:                                               ; preds = %40
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef @.str.3)
  br label %48

47:                                               ; preds = %40
  store i32 0, ptr %6, align 4, !tbaa !9
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %47, %44
  br label %49

49:                                               ; preds = %48, %37
  br label %50

50:                                               ; preds = %49, %30
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 1, ptr %12, align 4, !tbaa !9
  call void @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEC2IiEERKT_PNS_11enable_if_cIXaasr14is_convertibleINS0_6detail9canonicalISB_S7_E4typeES7_EE5valuentsr6detail24is_restricted_conversionISI_S7_EE5valueEvE4typeE(ptr noundef nonnull align 16 dereferenceable(32) %11, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef null) #4
  invoke void @_ZN5boost14multiprecisionlsINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEEiEENS_11enable_if_cIXaasr11is_integralIT0_EE5valueeqsr15number_categoryIT_EE5valueLNS0_20number_category_typeE0EENS0_6numberISA_LNS0_26expression_template_optionE1EEEE4typeEOSE_RKS9_(ptr dead_on_unwind writable sret(%"class.boost::multiprecision::number") align 16 %10, ptr noundef nonnull align 16 dereferenceable(32) %11, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %51 unwind label %70

51:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 1, ptr %15, align 4, !tbaa !9
  invoke void @_ZN5boost14multiprecisionmiINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEEiEENS_9enable_ifINS0_29is_compatible_arithmetic_typeIT0_NS0_6numberIT_LNS0_26expression_template_optionE1EEEEESE_E4typeEOSE_RKSA_(ptr dead_on_unwind writable sret(%"class.boost::multiprecision::number") align 16 %9, ptr noundef nonnull align 16 dereferenceable(32) %10, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %52 unwind label %74

52:                                               ; preds = %51
  invoke void @_ZN5boost14multiprecisionlsINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEEiEENS_11enable_if_cIXaasr11is_integralIT0_EE5valueeqsr15number_categoryIT_EE5valueLNS0_20number_category_typeE0EENS0_6numberISA_LNS0_26expression_template_optionE1EEEE4typeEOSE_RKS9_(ptr dead_on_unwind writable sret(%"class.boost::multiprecision::number") align 16 %8, ptr noundef nonnull align 16 dereferenceable(32) %9, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %53 unwind label %78

53:                                               ; preds = %52
  call void @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EED2Ev(ptr noundef nonnull align 16 dereferenceable(32) %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EED2Ev(ptr noundef nonnull align 16 dereferenceable(32) %10) #4
  call void @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EED2Ev(ptr noundef nonnull align 16 dereferenceable(32) %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #4
  br label %54

54:                                               ; preds = %116, %53
  %55 = invoke noundef zeroext i1 @_ZNK5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEcvbEv(ptr noundef nonnull align 16 dereferenceable(32) %8)
          to label %56 unwind label %84

56:                                               ; preds = %54
  br i1 %55, label %57, label %117

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.P4::match_t", ptr %58, i32 0, i32 0
  invoke void @_ZN5boost14multiprecisionanINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEEEENS_11enable_if_cIXeqsr15number_categoryIT_EE5valueLNS0_20number_category_typeE0EENS0_6detail10expressionINSB_22bitwise_and_immediatesENS0_6numberIS9_LNS0_26expression_template_optionE1EEESG_vvEEE4typeERKSG_SL_(ptr dead_on_unwind writable sret(%"struct.boost::multiprecision::detail::expression.0") align 8 %17, ptr noundef nonnull align 16 dereferenceable(32) %8, ptr noundef nonnull align 16 dereferenceable(32) %59)
          to label %60 unwind label %88

60:                                               ; preds = %57
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.P4::match_t", ptr %61, i32 0, i32 1
  invoke void @_ZN5boost14multiprecisionanINS0_6detail22bitwise_and_immediatesENS0_6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEESC_vvSA_EENS_11enable_if_cIXeqsr15number_categoryIT4_EE5valueLNS0_20number_category_typeE0EENS2_10expressionINS2_11bitwise_andENSG_IT_T0_T1_T2_T3_EENS4_ISE_LSB_1EEEvvEEE4typeERKSN_RKSO_(ptr dead_on_unwind writable sret(%"struct.boost::multiprecision::detail::expression") align 8 %16, ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 16 dereferenceable(32) %62)
          to label %63 unwind label %88

63:                                               ; preds = %60
  %64 = invoke noundef zeroext i1 @_ZNK5boost14multiprecision6detail10expressionINS1_11bitwise_andENS2_INS1_22bitwise_and_immediatesENS0_6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEESD_vvEESD_vvEcvbEv(ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %65 unwind label %88

65:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #4
  br i1 %64, label %66, label %92

66:                                               ; preds = %65
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %67, i8 noundef signext 42)
          to label %69 unwind label %84

69:                                               ; preds = %66
  br label %109

70:                                               ; preds = %50
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %13, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %14, align 4
  br label %83

74:                                               ; preds = %51
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %13, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %14, align 4
  br label %82

78:                                               ; preds = %52
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %13, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %14, align 4
  call void @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EED2Ev(ptr noundef nonnull align 16 dereferenceable(32) %9) #4
  br label %82

82:                                               ; preds = %78, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EED2Ev(ptr noundef nonnull align 16 dereferenceable(32) %10) #4
  br label %83

83:                                               ; preds = %82, %70
  call void @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EED2Ev(ptr noundef nonnull align 16 dereferenceable(32) %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #4
  br label %120

84:                                               ; preds = %110, %66, %54
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %13, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %14, align 4
  br label %119

88:                                               ; preds = %63, %60, %57
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %13, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #4
  br label %119

92:                                               ; preds = %65
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.P4::match_t", ptr %94, i32 0, i32 1
  invoke void @_ZN5boost14multiprecisionanINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEEEENS_11enable_if_cIXeqsr15number_categoryIT_EE5valueLNS0_20number_category_typeE0EENS0_6detail10expressionINSB_22bitwise_and_immediatesENS0_6numberIS9_LNS0_26expression_template_optionE1EEESG_vvEEE4typeERKSG_SL_(ptr dead_on_unwind writable sret(%"struct.boost::multiprecision::detail::expression.0") align 8 %19, ptr noundef nonnull align 16 dereferenceable(32) %95, ptr noundef nonnull align 16 dereferenceable(32) %8)
          to label %96 unwind label %105

96:                                               ; preds = %92
  invoke void @_ZN5boost14multiprecisionrsINS0_6detail22bitwise_and_immediatesENS0_6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEESC_vviEENS_11enable_if_cIXaasr11is_integralIT4_EE5valueeqsr15number_categoryINS2_10expressionIT_T0_T1_T2_T3_E11result_typeEEE5valueLNS0_20number_category_typeE0EENSF_INS2_11shift_rightESL_SE_vvEEE4typeERKSL_RKSE_(ptr dead_on_unwind writable sret(%"struct.boost::multiprecision::detail::expression.1") align 8 %18, ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %97 unwind label %105

97:                                               ; preds = %96
  %98 = invoke noundef i32 @_ZNK5boost14multiprecision6detail10expressionINS1_11shift_rightENS2_INS1_22bitwise_and_immediatesENS0_6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEESD_vvEEivvEcvT_IiTnNS_12disable_if_cIXoooosr9is_numberISG_EE5valuesr16is_constructibleIRKSG_SD_EE5valuentsr16is_constructibleISG_SD_EE5valueEiE4typeELi0EEEv(ptr noundef nonnull align 8 dereferenceable(20) %18)
          to label %99 unwind label %105

99:                                               ; preds = %97
  %100 = sext i32 %98 to i64
  %101 = getelementptr inbounds [17 x i8], ptr @.str.4, i64 0, i64 %100
  %102 = load i8, ptr %101, align 1, !tbaa !11
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %93, i8 noundef signext %102)
          to label %104 unwind label %105

104:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #4
  br label %109

105:                                              ; preds = %99, %97, %96, %92
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %13, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #4
  br label %119

109:                                              ; preds = %104, %69
  br label %110

110:                                              ; preds = %109
  %111 = load i32, ptr %7, align 4, !tbaa !9
  %112 = load i32, ptr %6, align 4, !tbaa !9
  %113 = sub nsw i32 %112, %111
  store i32 %113, ptr %6, align 4, !tbaa !9
  %114 = load i32, ptr %7, align 4, !tbaa !9
  %115 = invoke noundef nonnull align 16 dereferenceable(32) ptr @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EErSIiEENS_11enable_if_cIXsr11is_integralIT_EE5valueERS9_E4typeESC_(ptr noundef nonnull align 16 dereferenceable(32) %8, i32 noundef %114)
          to label %116 unwind label %84

116:                                              ; preds = %110
  br label %54, !llvm.loop !12

117:                                              ; preds = %56
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %118, ptr %3, align 8
  call void @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EED2Ev(ptr noundef nonnull align 16 dereferenceable(32) %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %121

119:                                              ; preds = %105, %88, %84
  call void @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EED2Ev(ptr noundef nonnull align 16 dereferenceable(32) %8) #4
  br label %120

120:                                              ; preds = %119, %83
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %123

121:                                              ; preds = %117, %22
  %122 = load ptr, ptr %3, align 8
  ret ptr %122

123:                                              ; preds = %120
  %124 = load ptr, ptr %13, align 8
  %125 = load i32, ptr %14, align 4
  %126 = insertvalue { ptr, i32 } poison, ptr %124, 0
  %127 = insertvalue { ptr, i32 } %126, i32 %125, 1
  resume { ptr, i32 } %127
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK2P47match_tcvbEv(ptr noundef nonnull align 16 dereferenceable(64)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN2P4L7chkmaskERKNS_7match_tEi(ptr noundef nonnull align 16 dereferenceable(64), i32 noundef) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost14multiprecisionlsINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEEiEENS_11enable_if_cIXaasr11is_integralIT0_EE5valueeqsr15number_categoryIT_EE5valueLNS0_20number_category_typeE0EENS0_6numberISA_LNS0_26expression_template_optionE1EEEE4typeEOSE_RKS9_(ptr dead_on_unwind noalias writable sret(%"class.boost::multiprecision::number") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(4)) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost14multiprecisionmiINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEEiEENS_9enable_ifINS0_29is_compatible_arithmetic_typeIT0_NS0_6numberIT_LNS0_26expression_template_optionE1EEEEESE_E4typeEOSE_RKSA_(ptr dead_on_unwind noalias writable sret(%"class.boost::multiprecision::number") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(4)) #1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EED2Ev(ptr noundef nonnull align 16 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) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEcvbEv(ptr noundef nonnull align 16 dereferenceable(32)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost14multiprecisionanINS0_6detail22bitwise_and_immediatesENS0_6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEESC_vvSA_EENS_11enable_if_cIXeqsr15number_categoryIT4_EE5valueLNS0_20number_category_typeE0EENS2_10expressionINS2_11bitwise_andENSG_IT_T0_T1_T2_T3_EENS4_ISE_LSB_1EEEvvEEE4typeERKSN_RKSO_(ptr dead_on_unwind noalias writable sret(%"struct.boost::multiprecision::detail::expression") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(32)) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost14multiprecisionanINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEEEENS_11enable_if_cIXeqsr15number_categoryIT_EE5valueLNS0_20number_category_typeE0EENS0_6detail10expressionINSB_22bitwise_and_immediatesENS0_6numberIS9_LNS0_26expression_template_optionE1EEESG_vvEEE4typeERKSG_SL_(ptr dead_on_unwind noalias writable sret(%"struct.boost::multiprecision::detail::expression.0") align 8, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5boost14multiprecision6detail10expressionINS1_11bitwise_andENS2_INS1_22bitwise_and_immediatesENS0_6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEESD_vvEESD_vvEcvbEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost14multiprecisionrsINS0_6detail22bitwise_and_immediatesENS0_6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEESC_vviEENS_11enable_if_cIXaasr11is_integralIT4_EE5valueeqsr15number_categoryINS2_10expressionIT_T0_T1_T2_T3_E11result_typeEEE5valueLNS0_20number_category_typeE0EENSF_INS2_11shift_rightESL_SE_vvEEE4typeERKSL_RKSE_(ptr dead_on_unwind noalias writable sret(%"struct.boost::multiprecision::detail::expression.1") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK5boost14multiprecision6detail10expressionINS1_11shift_rightENS2_INS1_22bitwise_and_immediatesENS0_6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEESD_vvEEivvEcvT_IiTnNS_12disable_if_cIXoooosr9is_numberISG_EE5valuesr16is_constructibleIRKSG_SD_EE5valuentsr16is_constructibleISG_SD_EE5valueEiE4typeELi0EEEv(ptr noundef nonnull align 8 dereferenceable(20)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(32) ptr @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EErSIiEENS_11enable_if_cIXsr11is_integralIT_EE5valueERS9_E4typeESC_(ptr noundef nonnull align 16 dereferenceable(32), i32 noundef) #1 align 2

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"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.boost::multiprecision::number" = type { %"struct.boost::multiprecision::backends::cpp_int_backend" }
%"struct.boost::multiprecision::backends::cpp_int_backend" = type { %"struct.boost::multiprecision::backends::cpp_int_base.base", [9 x i8] }
%"struct.boost::multiprecision::backends::cpp_int_base.base" = type <{ %"union.boost::multiprecision::backends::cpp_int_base<0, 4294967295, boost::multiprecision::signed_magnitude, boost::multiprecision::unchecked, std::allocator<unsigned long long>>::data_type", i32, i8, i8, i8 }>
%"union.boost::multiprecision::backends::cpp_int_base<0, 4294967295, boost::multiprecision::signed_magnitude, boost::multiprecision::unchecked, std::allocator<unsigned long long>>::data_type" = type { i128 }
%"struct.boost::multiprecision::detail::expression" = type { %"struct.boost::multiprecision::detail::expression.0", ptr }
%"struct.boost::multiprecision::detail::expression.0" = type { ptr, ptr }
%"struct.boost::multiprecision::detail::expression.1" = type <{ %"struct.boost::multiprecision::detail::expression.0", i32, [4 x i8] }>

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN2P4lsERSoRKNS_7match_tE(ptr noundef nonnull returned align 8 dereferenceable(8) %0, ptr noundef nonnull align 16 dereferenceable(64) %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.boost::multiprecision::number", align 16
  %6 = alloca %"class.boost::multiprecision::number", align 16
  %7 = alloca %"class.boost::multiprecision::number", align 16
  %8 = alloca %"class.boost::multiprecision::number", align 16
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.boost::multiprecision::detail::expression", align 8
  %12 = alloca %"struct.boost::multiprecision::detail::expression.0", align 8
  %13 = alloca %"struct.boost::multiprecision::detail::expression.1", align 8
  %14 = alloca %"struct.boost::multiprecision::detail::expression.0", align 8
  %15 = tail call noundef zeroext i1 @_ZNK2P47match_tcvbEv(ptr noundef nonnull align 16 dereferenceable(64) %1)
  br i1 %15, label %18, label %16

16:                                               ; preds = %2
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull @.str)
  br label %81

18:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  store i32 4, ptr %4, align 4, !tbaa !5
  %19 = tail call noundef i32 @_ZN2P4L7chkmaskERKNS_7match_tEi(ptr noundef nonnull align 16 dereferenceable(64) %1, i32 noundef 4)
  store i32 %19, ptr %3, align 4, !tbaa !5
  %20 = icmp sgt i32 %19, -1
  br i1 %20, label %21, label %23

21:                                               ; preds = %18
  %22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull @.str.1)
  br label %34

23:                                               ; preds = %18
  store i32 3, ptr %4, align 4, !tbaa !5
  %24 = tail call noundef i32 @_ZN2P4L7chkmaskERKNS_7match_tEi(ptr noundef nonnull align 16 dereferenceable(64) %1, i32 noundef 3)
  store i32 %24, ptr %3, align 4, !tbaa !5
  %25 = icmp sgt i32 %24, -1
  br i1 %25, label %26, label %28

26:                                               ; preds = %23
  %27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull @.str.2)
  br label %34

28:                                               ; preds = %23
  store i32 1, ptr %4, align 4, !tbaa !5
  %29 = tail call noundef i32 @_ZN2P4L7chkmaskERKNS_7match_tEi(ptr noundef nonnull align 16 dereferenceable(64) %1, i32 noundef 1)
  store i32 %29, ptr %3, align 4, !tbaa !5
  %30 = icmp sgt i32 %29, -1
  br i1 %30, label %31, label %33

31:                                               ; preds = %28
  %32 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull @.str.3)
  br label %34

33:                                               ; preds = %28
  store i32 0, ptr %3, align 4, !tbaa !5
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %26, %33, %31, %21
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  store i32 1, ptr %9, align 4, !tbaa !5
  call void @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEC2IiEERKT_PNS_11enable_if_cIXaasr14is_convertibleINS0_6detail9canonicalISB_S7_E4typeES7_EE5valuentsr6detail24is_restricted_conversionISI_S7_EE5valueEvE4typeE(ptr noundef nonnull align 16 dereferenceable(32) %8, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef null) #4
  invoke void @_ZN5boost14multiprecisionlsINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEEiEENS_11enable_if_cIXaasr11is_integralIT0_EE5valueeqsr15number_categoryIT_EE5valueLNS0_20number_category_typeE0EENS0_6numberISA_LNS0_26expression_template_optionE1EEEE4typeEOSE_RKS9_(ptr dead_on_unwind nonnull writable sret(%"class.boost::multiprecision::number") align 16 %7, ptr noundef nonnull align 16 dereferenceable(32) %8, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %35 unwind label %49

35:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  store i32 1, ptr %10, align 4, !tbaa !5
  invoke void @_ZN5boost14multiprecisionmiINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEEiEENS_9enable_ifINS0_29is_compatible_arithmetic_typeIT0_NS0_6numberIT_LNS0_26expression_template_optionE1EEEEESE_E4typeEOSE_RKSA_(ptr dead_on_unwind nonnull writable sret(%"class.boost::multiprecision::number") align 16 %6, ptr noundef nonnull align 16 dereferenceable(32) %7, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %36 unwind label %51

36:                                               ; preds = %35
  invoke void @_ZN5boost14multiprecisionlsINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEEiEENS_11enable_if_cIXaasr11is_integralIT0_EE5valueeqsr15number_categoryIT_EE5valueLNS0_20number_category_typeE0EENS0_6numberISA_LNS0_26expression_template_optionE1EEEE4typeEOSE_RKS9_(ptr dead_on_unwind nonnull writable sret(%"class.boost::multiprecision::number") align 16 %5, ptr noundef nonnull align 16 dereferenceable(32) %6, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %37 unwind label %53

37:                                               ; preds = %36
  call void @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EED2Ev(ptr noundef nonnull align 16 dereferenceable(32) %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  call void @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EED2Ev(ptr noundef nonnull align 16 dereferenceable(32) %7) #4
  call void @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EED2Ev(ptr noundef nonnull align 16 dereferenceable(32) %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  %38 = getelementptr inbounds i8, ptr %1, i64 32
  br label %39

39:                                               ; preds = %73, %37
  %40 = invoke noundef zeroext i1 @_ZNK5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEcvbEv(ptr noundef nonnull align 16 dereferenceable(32) %5)
          to label %41 unwind label %57

41:                                               ; preds = %39
  br i1 %40, label %42, label %78

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #4
  invoke void @_ZN5boost14multiprecisionanINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEEEENS_11enable_if_cIXeqsr15number_categoryIT_EE5valueLNS0_20number_category_typeE0EENS0_6detail10expressionINSB_22bitwise_and_immediatesENS0_6numberIS9_LNS0_26expression_template_optionE1EEESG_vvEEE4typeERKSG_SL_(ptr dead_on_unwind nonnull writable sret(%"struct.boost::multiprecision::detail::expression.0") align 8 %12, ptr noundef nonnull align 16 dereferenceable(32) %5, ptr noundef nonnull align 16 dereferenceable(32) %1)
          to label %43 unwind label %59

43:                                               ; preds = %42
  invoke void @_ZN5boost14multiprecisionanINS0_6detail22bitwise_and_immediatesENS0_6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEESC_vvSA_EENS_11enable_if_cIXeqsr15number_categoryIT4_EE5valueLNS0_20number_category_typeE0EENS2_10expressionINS2_11bitwise_andENSG_IT_T0_T1_T2_T3_EENS4_ISE_LSB_1EEEvvEEE4typeERKSN_RKSO_(ptr dead_on_unwind nonnull writable sret(%"struct.boost::multiprecision::detail::expression") align 8 %11, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 16 dereferenceable(32) %38)
          to label %44 unwind label %59

44:                                               ; preds = %43
  %45 = invoke noundef zeroext i1 @_ZNK5boost14multiprecision6detail10expressionINS1_11bitwise_andENS2_INS1_22bitwise_and_immediatesENS0_6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEESD_vvEESD_vvEcvbEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %46 unwind label %59

46:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #4
  br i1 %45, label %47, label %61

47:                                               ; preds = %46
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %0, i8 noundef signext 42)
          to label %73 unwind label %57

49:                                               ; preds = %34
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %56

51:                                               ; preds = %35
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %55

53:                                               ; preds = %36
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EED2Ev(ptr noundef nonnull align 16 dereferenceable(32) %6) #4
  br label %55

55:                                               ; preds = %53, %51
  %.pn = phi { ptr, i32 } [ %54, %53 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  call void @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EED2Ev(ptr noundef nonnull align 16 dereferenceable(32) %7) #4
  br label %56

56:                                               ; preds = %55, %49
  %.pn.pn = phi { ptr, i32 } [ %.pn, %55 ], [ %50, %49 ]
  call void @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EED2Ev(ptr noundef nonnull align 16 dereferenceable(32) %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  br label %80

57:                                               ; preds = %73, %47, %39
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %79

59:                                               ; preds = %44, %43, %42
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #4
  br label %79

61:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #4
  invoke void @_ZN5boost14multiprecisionanINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEEEENS_11enable_if_cIXeqsr15number_categoryIT_EE5valueLNS0_20number_category_typeE0EENS0_6detail10expressionINSB_22bitwise_and_immediatesENS0_6numberIS9_LNS0_26expression_template_optionE1EEESG_vvEEE4typeERKSG_SL_(ptr dead_on_unwind nonnull writable sret(%"struct.boost::multiprecision::detail::expression.0") align 8 %14, ptr noundef nonnull align 16 dereferenceable(32) %38, ptr noundef nonnull align 16 dereferenceable(32) %5)
          to label %62 unwind label %71

62:                                               ; preds = %61
  invoke void @_ZN5boost14multiprecisionrsINS0_6detail22bitwise_and_immediatesENS0_6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEESC_vviEENS_11enable_if_cIXaasr11is_integralIT4_EE5valueeqsr15number_categoryINS2_10expressionIT_T0_T1_T2_T3_E11result_typeEEE5valueLNS0_20number_category_typeE0EENSF_INS2_11shift_rightESL_SE_vvEEE4typeERKSL_RKSE_(ptr dead_on_unwind nonnull writable sret(%"struct.boost::multiprecision::detail::expression.1") align 8 %13, ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %63 unwind label %71

63:                                               ; preds = %62
  %64 = invoke noundef i32 @_ZNK5boost14multiprecision6detail10expressionINS1_11shift_rightENS2_INS1_22bitwise_and_immediatesENS0_6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEESD_vvEEivvEcvT_IiTnNS_12disable_if_cIXoooosr9is_numberISG_EE5valuesr16is_constructibleIRKSG_SD_EE5valuentsr16is_constructibleISG_SD_EE5valueEiE4typeELi0EEEv(ptr noundef nonnull align 8 dereferenceable(20) %13)
          to label %65 unwind label %71

65:                                               ; preds = %63
  %66 = sext i32 %64 to i64
  %67 = getelementptr inbounds [17 x i8], ptr @.str.4, i64 0, i64 %66
  %68 = load i8, ptr %67, align 1, !tbaa !9
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %0, i8 noundef signext %68)
          to label %70 unwind label %71

70:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #4
  br label %73

71:                                               ; preds = %65, %63, %62, %61
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #4
  br label %79

73:                                               ; preds = %70, %47
  %74 = load i32, ptr %4, align 4, !tbaa !5
  %75 = load i32, ptr %3, align 4, !tbaa !5
  %76 = sub nsw i32 %75, %74
  store i32 %76, ptr %3, align 4, !tbaa !5
  %77 = invoke noundef nonnull align 16 dereferenceable(32) ptr @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EErSIiEENS_11enable_if_cIXsr11is_integralIT_EE5valueERS9_E4typeESC_(ptr noundef nonnull align 16 dereferenceable(32) %5, i32 noundef %74)
          to label %39 unwind label %57, !llvm.loop !10

78:                                               ; preds = %41
  call void @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EED2Ev(ptr noundef nonnull align 16 dereferenceable(32) %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  br label %81

79:                                               ; preds = %71, %59, %57
  %.pn24 = phi { ptr, i32 } [ %58, %57 ], [ %72, %71 ], [ %60, %59 ]
  call void @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EED2Ev(ptr noundef nonnull align 16 dereferenceable(32) %5) #4
  br label %80

80:                                               ; preds = %79, %56
  %.pn24.pn = phi { ptr, i32 } [ %.pn24, %79 ], [ %.pn.pn, %56 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn24.pn

81:                                               ; preds = %78, %16
  ret ptr %0
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK2P47match_tcvbEv(ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN2P4L7chkmaskERKNS_7match_tEi(ptr noundef nonnull align 16 dereferenceable(64), i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost14multiprecisionlsINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEEiEENS_11enable_if_cIXaasr11is_integralIT0_EE5valueeqsr15number_categoryIT_EE5valueLNS0_20number_category_typeE0EENS0_6numberISA_LNS0_26expression_template_optionE1EEEE4typeEOSE_RKS9_(ptr dead_on_unwind noalias writable sret(%"class.boost::multiprecision::number") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost14multiprecisionmiINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEEiEENS_9enable_ifINS0_29is_compatible_arithmetic_typeIT0_NS0_6numberIT_LNS0_26expression_template_optionE1EEEEESE_E4typeEOSE_RKSA_(ptr dead_on_unwind noalias writable sret(%"class.boost::multiprecision::number") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EED2Ev(ptr noundef nonnull align 16 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) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEcvbEv(ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost14multiprecisionanINS0_6detail22bitwise_and_immediatesENS0_6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEESC_vvSA_EENS_11enable_if_cIXeqsr15number_categoryIT4_EE5valueLNS0_20number_category_typeE0EENS2_10expressionINS2_11bitwise_andENSG_IT_T0_T1_T2_T3_EENS4_ISE_LSB_1EEEvvEEE4typeERKSN_RKSO_(ptr dead_on_unwind noalias writable sret(%"struct.boost::multiprecision::detail::expression") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost14multiprecisionanINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEEEENS_11enable_if_cIXeqsr15number_categoryIT_EE5valueLNS0_20number_category_typeE0EENS0_6detail10expressionINSB_22bitwise_and_immediatesENS0_6numberIS9_LNS0_26expression_template_optionE1EEESG_vvEEE4typeERKSG_SL_(ptr dead_on_unwind noalias writable sret(%"struct.boost::multiprecision::detail::expression.0") align 8, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK5boost14multiprecision6detail10expressionINS1_11bitwise_andENS2_INS1_22bitwise_and_immediatesENS0_6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEESD_vvEESD_vvEcvbEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost14multiprecisionrsINS0_6detail22bitwise_and_immediatesENS0_6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEESC_vviEENS_11enable_if_cIXaasr11is_integralIT4_EE5valueeqsr15number_categoryINS2_10expressionIT_T0_T1_T2_T3_E11result_typeEEE5valueLNS0_20number_category_typeE0EENSF_INS2_11shift_rightESL_SE_vvEEE4typeERKSL_RKSE_(ptr dead_on_unwind noalias writable sret(%"struct.boost::multiprecision::detail::expression.1") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK5boost14multiprecision6detail10expressionINS1_11shift_rightENS2_INS1_22bitwise_and_immediatesENS0_6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEESD_vvEEivvEcvT_IiTnNS_12disable_if_cIXoooosr9is_numberISG_EE5valuesr16is_constructibleIRKSG_SD_EE5valuentsr16is_constructibleISG_SD_EE5valueEiE4typeELi0EEEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(32) ptr @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EErSIiEENS_11enable_if_cIXsr11is_integralIT_EE5valueERS9_E4typeESC_(ptr noundef nonnull align 16 dereferenceable(32), i32 noundef) local_unnamed_addr #1 align 2

attributes #0 = { 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 #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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


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