; LLVM IR from p4lang/p4c :: lib/match.ll (ZN2P4rsEPKcRNS_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"

%"struct.P4::match_t" = type { %"class.boost::multiprecision::number", %"class.boost::multiprecision::number" }
%"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.2" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN2P4rsEPKcRNS_7match_tE(ptr noundef %0, ptr noundef nonnull align 16 dereferenceable(64) %1) #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.P4::match_t", align 16
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"struct.boost::multiprecision::detail::expression.2", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = icmp ne ptr %15, null
  br i1 %16, label %18, label %17

17:                                               ; preds = %2
  store i1 false, ptr %3, align 1
  br label %131

18:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 64, ptr %6) #5
  call void @_ZN2P47match_tC2Ev(ptr noundef nonnull align 16 dereferenceable(64) %6)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 10, ptr %7, align 4, !tbaa !9
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = load i8, ptr %19, align 1, !tbaa !11
  %21 = sext i8 %20 to i32
  %22 = icmp eq i32 %21, 48
  br i1 %22, label %23, label %39

23:                                               ; preds = %18
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 1
  %26 = load i8, ptr %25, align 1, !tbaa !11
  %27 = sext i8 %26 to i32
  switch i32 %27, label %37 [
    i32 120, label %28
    i32 88, label %28
    i32 111, label %31
    i32 79, label %31
    i32 98, label %34
    i32 66, label %34
  ]

28:                                               ; preds = %23, %23
  store i32 16, ptr %7, align 4, !tbaa !9
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %29, i64 2
  store ptr %30, ptr %4, align 8, !tbaa !5
  br label %38

31:                                               ; preds = %23, %23
  store i32 8, ptr %7, align 4, !tbaa !9
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 2
  store ptr %33, ptr %4, align 8, !tbaa !5
  br label %38

34:                                               ; preds = %23, %23
  store i32 2, ptr %7, align 4, !tbaa !9
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i64 2
  store ptr %36, ptr %4, align 8, !tbaa !5
  br label %38

37:                                               ; preds = %23
  br label %38

38:                                               ; preds = %37, %34, %31, %28
  br label %39

39:                                               ; preds = %38, %18
  br label %40

40:                                               ; preds = %98, %96, %39
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = load i8, ptr %41, align 1, !tbaa !11
  %43 = icmp ne i8 %42, 0
  br i1 %43, label %44, label %108

44:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %45 = load i32, ptr %7, align 4, !tbaa !9
  %46 = sub i32 %45, 1
  store i32 %46, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %47 = load i32, ptr %7, align 4, !tbaa !9
  %48 = sub i32 %47, 1
  store i32 %48, ptr %9, align 4, !tbaa !9
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %49, i32 1
  store ptr %50, ptr %4, align 8, !tbaa !5
  %51 = load i8, ptr %49, align 1, !tbaa !11
  %52 = sext i8 %51 to i32
  switch i32 %52, label %79 [
    i32 95, label %53
    i32 48, label %54
    i32 49, label %54
    i32 50, label %54
    i32 51, label %54
    i32 52, label %54
    i32 53, label %54
    i32 54, label %54
    i32 55, label %54
    i32 56, label %54
    i32 57, label %54
    i32 97, label %60
    i32 98, label %60
    i32 99, label %60
    i32 100, label %60
    i32 101, label %60
    i32 102, label %60
    i32 65, label %67
    i32 66, label %67
    i32 67, label %67
    i32 68, label %67
    i32 69, label %67
    i32 70, label %67
    i32 42, label %74
  ]

53:                                               ; preds = %44
  store i32 3, ptr %10, align 4
  br label %96, !llvm.loop !12

54:                                               ; preds = %44, %44, %44, %44, %44, %44, %44, %44, %44, %44
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %55, i64 -1
  %57 = load i8, ptr %56, align 1, !tbaa !11
  %58 = sext i8 %57 to i32
  %59 = sub nsw i32 %58, 48
  store i32 %59, ptr %8, align 4, !tbaa !9
  br label %80

60:                                               ; preds = %44, %44, %44, %44, %44, %44
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %61, i64 -1
  %63 = load i8, ptr %62, align 1, !tbaa !11
  %64 = sext i8 %63 to i32
  %65 = sub nsw i32 %64, 97
  %66 = add nsw i32 %65, 10
  store i32 %66, ptr %8, align 4, !tbaa !9
  br label %80

67:                                               ; preds = %44, %44, %44, %44, %44, %44
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %68, i64 -1
  %70 = load i8, ptr %69, align 1, !tbaa !11
  %71 = sext i8 %70 to i32
  %72 = sub nsw i32 %71, 65
  %73 = add nsw i32 %72, 10
  store i32 %73, ptr %8, align 4, !tbaa !9
  br label %80

74:                                               ; preds = %44
  %75 = load i32, ptr %7, align 4, !tbaa !9
  %76 = icmp eq i32 %75, 10
  br i1 %76, label %77, label %78

77:                                               ; preds = %74
  store i1 false, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %96

78:                                               ; preds = %74
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %80

79:                                               ; preds = %44
  store i1 false, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %96

80:                                               ; preds = %78, %67, %60, %54
  %81 = getelementptr inbounds %"struct.P4::match_t", ptr %6, i32 0, i32 0
  %82 = invoke noundef nonnull align 16 dereferenceable(32) ptr @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEmLIjEENS_11enable_if_cIXsr14is_convertibleIT_S9_EE5valueERS9_E4typeERKSC_(ptr noundef nonnull align 16 dereferenceable(32) %81, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %83 unwind label %99

83:                                               ; preds = %80
  %84 = getelementptr inbounds %"struct.P4::match_t", ptr %6, i32 0, i32 1
  %85 = invoke noundef nonnull align 16 dereferenceable(32) ptr @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEmLIjEENS_11enable_if_cIXsr14is_convertibleIT_S9_EE5valueERS9_E4typeERKSC_(ptr noundef nonnull align 16 dereferenceable(32) %84, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %86 unwind label %99

86:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %87 = load i32, ptr %8, align 4, !tbaa !9
  %88 = load i32, ptr %9, align 4, !tbaa !9
  %89 = xor i32 %87, %88
  store i32 %89, ptr %13, align 4, !tbaa !9
  %90 = getelementptr inbounds %"struct.P4::match_t", ptr %6, i32 0, i32 0
  %91 = invoke noundef nonnull align 16 dereferenceable(32) ptr @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEoRIiEENS_11enable_if_cIXsr14is_convertibleIT_S9_EE5valueERS9_E4typeERKSC_(ptr noundef nonnull align 16 dereferenceable(32) %90, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %92 unwind label %103

92:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  %93 = getelementptr inbounds %"struct.P4::match_t", ptr %6, i32 0, i32 1
  %94 = invoke noundef nonnull align 16 dereferenceable(32) ptr @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEoRIiEENS_11enable_if_cIXsr14is_convertibleIT_S9_EE5valueERS9_E4typeERKSC_(ptr noundef nonnull align 16 dereferenceable(32) %93, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %95 unwind label %99

95:                                               ; preds = %92
  store i32 0, ptr %10, align 4
  br label %96

96:                                               ; preds = %95, %79, %77, %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %97 = load i32, ptr %10, align 4
  switch i32 %97, label %129 [
    i32 0, label %98
    i32 3, label %40
  ]

98:                                               ; preds = %96
  br label %40, !llvm.loop !12

99:                                               ; preds = %92, %83, %80
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %11, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %12, align 4
  br label %107

103:                                              ; preds = %86
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %11, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %107

107:                                              ; preds = %103, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %130

108:                                              ; preds = %40
  %109 = load i32, ptr %7, align 4, !tbaa !9
  %110 = icmp eq i32 %109, 10
  br i1 %110, label %111, label %121

111:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %112 = getelementptr inbounds %"struct.P4::match_t", ptr %6, i32 0, i32 1
  invoke void @_ZN5boost14multiprecisioncoINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEEEENS_11enable_if_cIXeqsr15number_categoryIT_EE5valueLNS0_20number_category_typeE0EENS0_6detail10expressionINSB_21complement_immediatesENS0_6numberIS9_LNS0_26expression_template_optionE1EEEvvvEEE4typeERKSG_(ptr dead_on_unwind writable sret(%"struct.boost::multiprecision::detail::expression.2") align 8 %14, ptr noundef nonnull align 16 dereferenceable(32) %112)
          to label %113 unwind label %117

113:                                              ; preds = %111
  %114 = getelementptr inbounds %"struct.P4::match_t", ptr %6, i32 0, i32 0
  %115 = invoke noundef nonnull align 16 dereferenceable(32) ptr @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEaSINS0_6detail21complement_immediatesES9_vvvEENS_11enable_if_cIXsr14is_convertibleINSB_10expressionIT_T0_T1_T2_T3_E11result_typeES9_EE5valueERS9_E4typeERKSK_(ptr noundef nonnull align 16 dereferenceable(32) %114, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %116 unwind label %117

116:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %121

117:                                              ; preds = %113, %111
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %11, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %130

121:                                              ; preds = %116, %108
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN2P47match_taSERKS0_(ptr noundef nonnull align 16 dereferenceable(64) %122, ptr noundef nonnull align 16 dereferenceable(64) %6)
          to label %124 unwind label %125

124:                                              ; preds = %121
  store i1 true, ptr %3, align 1
  store i32 1, ptr %10, align 4
  br label %129

125:                                              ; preds = %121
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %11, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %12, align 4
  br label %130

129:                                              ; preds = %124, %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @_ZN2P47match_tD2Ev(ptr noundef nonnull align 16 dereferenceable(64) %6) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #5
  br label %131

130:                                              ; preds = %125, %117, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @_ZN2P47match_tD2Ev(ptr noundef nonnull align 16 dereferenceable(64) %6) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #5
  br label %133

131:                                              ; preds = %129, %17
  %132 = load i1, ptr %3, align 1
  ret i1 %132

133:                                              ; preds = %130
  %134 = load ptr, ptr %11, align 8
  %135 = load i32, ptr %12, align 4
  %136 = insertvalue { ptr, i32 } poison, ptr %134, 0
  %137 = insertvalue { ptr, i32 } %136, i32 %135, 1
  resume { ptr, i32 } %137
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2P47match_tC2Ev(ptr noundef nonnull align 16 dereferenceable(64)) unnamed_addr #2 align 2

; Function Attrs: 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_optionE1EEmLIjEENS_11enable_if_cIXsr14is_convertibleIT_S9_EE5valueERS9_E4typeERKSC_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(4)) #1 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_optionE1EEoRIiEENS_11enable_if_cIXsr14is_convertibleIT_S9_EE5valueERS9_E4typeERKSC_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

; Function Attrs: 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_optionE1EEaSINS0_6detail21complement_immediatesES9_vvvEENS_11enable_if_cIXsr14is_convertibleINSB_10expressionIT_T0_T1_T2_T3_E11result_typeES9_EE5valueERS9_E4typeERKSK_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(64) ptr @_ZN2P47match_taSERKS0_(ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) #3 align 2

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

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

%"struct.P4::match_t" = type { %"class.boost::multiprecision::number", %"class.boost::multiprecision::number" }
%"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.2" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN2P4rsEPKcRNS_7match_tE(ptr noundef readonly %0, ptr noundef nonnull align 16 dereferenceable(64) %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.P4::match_t", align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"struct.boost::multiprecision::detail::expression.2", align 8
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %71, label %8

8:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #5
  call void @_ZN2P47match_tC2Ev(ptr noundef nonnull align 16 dereferenceable(64) %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  store i32 10, ptr %4, align 4, !tbaa !5
  %9 = load i8, ptr %0, align 1, !tbaa !9
  %10 = icmp eq i8 %9, 48
  br i1 %10, label %11, label %18

11:                                               ; preds = %8
  %12 = getelementptr inbounds i8, ptr %0, i64 1
  %13 = load i8, ptr %12, align 1, !tbaa !9
  switch i8 %13, label %.lr.ph [
    i8 120, label %14
    i8 88, label %14
    i8 111, label %15
    i8 79, label %15
    i8 98, label %16
    i8 66, label %16
  ]

14:                                               ; preds = %11, %11
  store i32 16, ptr %4, align 4, !tbaa !5
  br label %thread-pre-split

15:                                               ; preds = %11, %11
  store i32 8, ptr %4, align 4, !tbaa !5
  br label %thread-pre-split

16:                                               ; preds = %11, %11
  store i32 2, ptr %4, align 4, !tbaa !5
  br label %thread-pre-split

thread-pre-split:                                 ; preds = %16, %15, %14
  %.ph = phi i32 [ 16, %14 ], [ 8, %15 ], [ 2, %16 ]
  %17 = getelementptr inbounds i8, ptr %0, i64 2
  %.pr = load i8, ptr %17, align 1, !tbaa !9
  br label %18

18:                                               ; preds = %thread-pre-split, %8
  %19 = phi i8 [ %.pr, %thread-pre-split ], [ %9, %8 ]
  %20 = phi i32 [ %.ph, %thread-pre-split ], [ 10, %8 ]
  %.022 = phi ptr [ %17, %thread-pre-split ], [ %0, %8 ]
  %.not2533 = icmp eq i8 %19, 0
  br i1 %.not2533, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %11, %18
  %.02243 = phi ptr [ %.022, %18 ], [ %0, %11 ]
  %21 = phi i8 [ %19, %18 ], [ 48, %11 ]
  %22 = getelementptr inbounds i8, ptr %3, i64 32
  br label %23

23:                                               ; preds = %.lr.ph, %49
  %24 = phi i8 [ %21, %.lr.ph ], [ %50, %49 ]
  %.12334 = phi ptr [ %.02243, %.lr.ph ], [ %27, %49 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = add i32 %25, -1
  store i32 %26, ptr %5, align 4, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %.12334, i64 1
  switch i8 %24, label %.thread [
    i8 95, label %49
    i8 48, label %28
    i8 49, label %28
    i8 50, label %28
    i8 51, label %28
    i8 52, label %28
    i8 53, label %28
    i8 54, label %28
    i8 55, label %28
    i8 56, label %28
    i8 57, label %28
    i8 97, label %31
    i8 98, label %31
    i8 99, label %31
    i8 100, label %31
    i8 101, label %31
    i8 102, label %31
    i8 65, label %34
    i8 66, label %34
    i8 67, label %34
    i8 68, label %34
    i8 69, label %34
    i8 70, label %34
    i8 42, label %37
  ], !llvm.loop !10

28:                                               ; preds = %23, %23, %23, %23, %23, %23, %23, %23, %23, %23
  %29 = zext nneg i8 %24 to i32
  %30 = add nsw i32 %29, -48
  store i32 %30, ptr %5, align 4, !tbaa !5
  br label %39

31:                                               ; preds = %23, %23, %23, %23, %23, %23
  %32 = zext nneg i8 %24 to i32
  %33 = add nsw i32 %32, -87
  store i32 %33, ptr %5, align 4, !tbaa !5
  br label %39

34:                                               ; preds = %23, %23, %23, %23, %23, %23
  %35 = zext nneg i8 %24 to i32
  %36 = add nsw i32 %35, -55
  store i32 %36, ptr %5, align 4, !tbaa !5
  br label %39

37:                                               ; preds = %23
  %38 = icmp eq i32 %25, 10
  br i1 %38, label %.thread, label %39

39:                                               ; preds = %37, %34, %31, %28
  %.019 = phi i32 [ %26, %34 ], [ %26, %31 ], [ %26, %28 ], [ 0, %37 ]
  %40 = invoke noundef nonnull align 16 dereferenceable(32) ptr @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEmLIjEENS_11enable_if_cIXsr14is_convertibleIT_S9_EE5valueERS9_E4typeERKSC_(ptr noundef nonnull align 16 dereferenceable(32) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %41 unwind label %51

41:                                               ; preds = %39
  %42 = invoke noundef nonnull align 16 dereferenceable(32) ptr @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEmLIjEENS_11enable_if_cIXsr14is_convertibleIT_S9_EE5valueERS9_E4typeERKSC_(ptr noundef nonnull align 16 dereferenceable(32) %22, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %43 unwind label %51

43:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %44 = load i32, ptr %5, align 4, !tbaa !5
  %45 = xor i32 %44, %.019
  store i32 %45, ptr %6, align 4, !tbaa !5
  %46 = invoke noundef nonnull align 16 dereferenceable(32) ptr @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEoRIiEENS_11enable_if_cIXsr14is_convertibleIT_S9_EE5valueERS9_E4typeERKSC_(ptr noundef nonnull align 16 dereferenceable(32) %3, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %47 unwind label %53

47:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  %48 = invoke noundef nonnull align 16 dereferenceable(32) ptr @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEoRIiEENS_11enable_if_cIXsr14is_convertibleIT_S9_EE5valueERS9_E4typeERKSC_(ptr noundef nonnull align 16 dereferenceable(32) %22, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %49 unwind label %51

.thread:                                          ; preds = %37, %23
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %69

49:                                               ; preds = %47, %23
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %50 = load i8, ptr %27, align 1, !tbaa !9
  %.not25 = icmp eq i8 %50, 0
  br i1 %.not25, label %._crit_edge.loopexit, label %23

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

53:                                               ; preds = %43
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  br label %55

55:                                               ; preds = %53, %51
  %.pn = phi { ptr, i32 } [ %52, %51 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %70

._crit_edge.loopexit:                             ; preds = %49
  %.pre = load i32, ptr %4, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %18
  %56 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %20, %18 ]
  %57 = icmp eq i32 %56, 10
  br i1 %57, label %58, label %65

58:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %59 = getelementptr inbounds i8, ptr %3, i64 32
  invoke void @_ZN5boost14multiprecisioncoINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEEEENS_11enable_if_cIXeqsr15number_categoryIT_EE5valueLNS0_20number_category_typeE0EENS0_6detail10expressionINSB_21complement_immediatesENS0_6numberIS9_LNS0_26expression_template_optionE1EEEvvvEEE4typeERKSG_(ptr dead_on_unwind nonnull writable sret(%"struct.boost::multiprecision::detail::expression.2") align 8 %7, ptr noundef nonnull align 16 dereferenceable(32) %59)
          to label %60 unwind label %63

60:                                               ; preds = %58
  %61 = invoke noundef nonnull align 16 dereferenceable(32) ptr @_ZN5boost14multiprecision6numberINS0_8backends15cpp_int_backendILj0ELj0ELNS0_16cpp_integer_typeE1ELNS0_18cpp_int_check_typeE0ESaIyEEELNS0_26expression_template_optionE1EEaSINS0_6detail21complement_immediatesES9_vvvEENS_11enable_if_cIXsr14is_convertibleINSB_10expressionIT_T0_T1_T2_T3_E11result_typeES9_EE5valueERS9_E4typeERKSK_(ptr noundef nonnull align 16 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %62 unwind label %63

62:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %65

63:                                               ; preds = %60, %58
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %70

65:                                               ; preds = %62, %._crit_edge
  %66 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN2P47match_taSERKS0_(ptr noundef nonnull align 16 dereferenceable(64) %1, ptr noundef nonnull align 16 dereferenceable(64) %3)
          to label %69 unwind label %67

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

69:                                               ; preds = %.thread, %65
  %.not2532 = phi i1 [ false, %.thread ], [ true, %65 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @_ZN2P47match_tD2Ev(ptr noundef nonnull align 16 dereferenceable(64) %3) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #5
  br label %71

70:                                               ; preds = %67, %63, %55
  %.pn.pn = phi { ptr, i32 } [ %.pn, %55 ], [ %68, %67 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @_ZN2P47match_tD2Ev(ptr noundef nonnull align 16 dereferenceable(64) %3) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn.pn

71:                                               ; preds = %2, %69
  %.3 = phi i1 [ %.not2532, %69 ], [ false, %2 ]
  ret i1 %.3
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2P47match_tC2Ev(ptr noundef nonnull align 16 dereferenceable(64)) unnamed_addr #2 align 2

; Function Attrs: 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_optionE1EEmLIjEENS_11enable_if_cIXsr14is_convertibleIT_S9_EE5valueERS9_E4typeERKSC_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 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_optionE1EEoRIiEENS_11enable_if_cIXsr14is_convertibleIT_S9_EE5valueERS9_E4typeERKSC_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

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

; Function Attrs: 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_optionE1EEaSINS0_6detail21complement_immediatesES9_vvvEENS_11enable_if_cIXsr14is_convertibleINSB_10expressionIT_T0_T1_T2_T3_E11result_typeES9_EE5valueERS9_E4typeERKSK_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(64) ptr @_ZN2P47match_taSERKS0_(ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #3 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass