; LLVM IR from tangjz/acm-icpc :: codeforces/1530B.ll (Z5solvev)

; 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.anon = type { ptr, ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair.0" = type { i32, i32 }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon.5 = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_ZZ5solvevE3ans = external hidden global [21 x [21 x i8]], align 16
@_ZZ5solvevE3tmp = external hidden global [21 x [21 x i8]], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %class.anon, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::set", align 8
  %6 = alloca %"struct.std::pair.0", align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca %"struct.std::pair.0", align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca %"struct.std::pair.0", align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"struct.std::pair", align 8
  %20 = alloca %"struct.std::pair.0", align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"struct.std::pair", align 8
  %24 = alloca %"struct.std::pair.0", align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %"struct.std::pair", align 8
  %28 = alloca %"struct.std::pair.0", align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca %"struct.std::pair", align 8
  %32 = alloca %"struct.std::pair.0", align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca %"struct.std::pair", align 8
  %36 = alloca %"struct.std::pair.0", align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca %"struct.std::pair", align 8
  %40 = alloca %"class.std::vector", align 8
  %41 = alloca ptr, align 8
  %42 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %43 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %44 = alloca ptr, align 8
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca %class.anon.5, align 8
  %50 = alloca i8, align 1
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca i32, align 4
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  %57 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %1, ptr noundef %2)
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #6
  %58 = getelementptr inbounds %class.anon, ptr %3, i32 0, i32 0
  store ptr %1, ptr %58, align 8, !tbaa !5
  %59 = getelementptr inbounds %class.anon, ptr %3, i32 0, i32 1
  store ptr %2, ptr %59, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @"_ZZ5solvevENK3$_0clEPA21_c"(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef @_ZZ5solvevE3ans)
  call void @llvm.lifetime.start.p0(i64 48, ptr %5) #6
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 1, ptr %8, align 4, !tbaa !9
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %60 unwind label %141

60:                                               ; preds = %0
  %61 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %62 unwind label %141

62:                                               ; preds = %60
  %63 = getelementptr inbounds { ptr, i8 }, ptr %11, i32 0, i32 0
  %64 = extractvalue { ptr, i8 } %61, 0
  store ptr %64, ptr %63, align 8
  %65 = getelementptr inbounds { ptr, i8 }, ptr %11, i32 0, i32 1
  %66 = extractvalue { ptr, i8 } %61, 1
  store i8 %66, ptr %65, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 1, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %67 unwind label %145

67:                                               ; preds = %62
  %68 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(8) %12)
          to label %69 unwind label %145

69:                                               ; preds = %67
  %70 = getelementptr inbounds { ptr, i8 }, ptr %15, i32 0, i32 0
  %71 = extractvalue { ptr, i8 } %68, 0
  store ptr %71, ptr %70, align 8
  %72 = getelementptr inbounds { ptr, i8 }, ptr %15, i32 0, i32 1
  %73 = extractvalue { ptr, i8 } %68, 1
  store i8 %73, ptr %72, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %74 = load i32, ptr %2, align 4, !tbaa !9
  %75 = sub nsw i32 %74, 2
  store i32 %75, ptr %18, align 4, !tbaa !9
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %76 unwind label %149

76:                                               ; preds = %69
  %77 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %78 unwind label %149

78:                                               ; preds = %76
  %79 = getelementptr inbounds { ptr, i8 }, ptr %19, i32 0, i32 0
  %80 = extractvalue { ptr, i8 } %77, 0
  store ptr %80, ptr %79, align 8
  %81 = getelementptr inbounds { ptr, i8 }, ptr %19, i32 0, i32 1
  %82 = extractvalue { ptr, i8 } %77, 1
  store i8 %82, ptr %81, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 1, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %83 = load i32, ptr %2, align 4, !tbaa !9
  %84 = sub nsw i32 %83, 1
  store i32 %84, ptr %22, align 4, !tbaa !9
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %85 unwind label %153

85:                                               ; preds = %78
  %86 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(8) %20)
          to label %87 unwind label %153

87:                                               ; preds = %85
  %88 = getelementptr inbounds { ptr, i8 }, ptr %23, i32 0, i32 0
  %89 = extractvalue { ptr, i8 } %86, 0
  store ptr %89, ptr %88, align 8
  %90 = getelementptr inbounds { ptr, i8 }, ptr %23, i32 0, i32 1
  %91 = extractvalue { ptr, i8 } %86, 1
  store i8 %91, ptr %90, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %92 = load i32, ptr %1, align 4, !tbaa !9
  %93 = sub nsw i32 %92, 1
  store i32 %93, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 1, ptr %26, align 4, !tbaa !9
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %94 unwind label %157

94:                                               ; preds = %87
  %95 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(8) %24)
          to label %96 unwind label %157

96:                                               ; preds = %94
  %97 = getelementptr inbounds { ptr, i8 }, ptr %27, i32 0, i32 0
  %98 = extractvalue { ptr, i8 } %95, 0
  store ptr %98, ptr %97, align 8
  %99 = getelementptr inbounds { ptr, i8 }, ptr %27, i32 0, i32 1
  %100 = extractvalue { ptr, i8 } %95, 1
  store i8 %100, ptr %99, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %101 = load i32, ptr %1, align 4, !tbaa !9
  %102 = sub nsw i32 %101, 2
  store i32 %102, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  store i32 0, ptr %30, align 4, !tbaa !9
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %30)
          to label %103 unwind label %161

103:                                              ; preds = %96
  %104 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(8) %28)
          to label %105 unwind label %161

105:                                              ; preds = %103
  %106 = getelementptr inbounds { ptr, i8 }, ptr %31, i32 0, i32 0
  %107 = extractvalue { ptr, i8 } %104, 0
  store ptr %107, ptr %106, align 8
  %108 = getelementptr inbounds { ptr, i8 }, ptr %31, i32 0, i32 1
  %109 = extractvalue { ptr, i8 } %104, 1
  store i8 %109, ptr %108, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  %110 = load i32, ptr %1, align 4, !tbaa !9
  %111 = sub nsw i32 %110, 1
  store i32 %111, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %112 = load i32, ptr %2, align 4, !tbaa !9
  %113 = sub nsw i32 %112, 2
  store i32 %113, ptr %34, align 4, !tbaa !9
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %32, ptr noundef nonnull align 4 dereferenceable(4) %33, ptr noundef nonnull align 4 dereferenceable(4) %34)
          to label %114 unwind label %165

114:                                              ; preds = %105
  %115 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(8) %32)
          to label %116 unwind label %165

116:                                              ; preds = %114
  %117 = getelementptr inbounds { ptr, i8 }, ptr %35, i32 0, i32 0
  %118 = extractvalue { ptr, i8 } %115, 0
  store ptr %118, ptr %117, align 8
  %119 = getelementptr inbounds { ptr, i8 }, ptr %35, i32 0, i32 1
  %120 = extractvalue { ptr, i8 } %115, 1
  store i8 %120, ptr %119, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #6
  %121 = load i32, ptr %1, align 4, !tbaa !9
  %122 = sub nsw i32 %121, 2
  store i32 %122, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  %123 = load i32, ptr %2, align 4, !tbaa !9
  %124 = sub nsw i32 %123, 1
  store i32 %124, ptr %38, align 4, !tbaa !9
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %36, ptr noundef nonnull align 4 dereferenceable(4) %37, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %125 unwind label %169

125:                                              ; preds = %116
  %126 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(8) %36)
          to label %127 unwind label %169

127:                                              ; preds = %125
  %128 = getelementptr inbounds { ptr, i8 }, ptr %39, i32 0, i32 0
  %129 = extractvalue { ptr, i8 } %126, 0
  store ptr %129, ptr %128, align 8
  %130 = getelementptr inbounds { ptr, i8 }, ptr %39, i32 0, i32 1
  %131 = extractvalue { ptr, i8 } %126, 1
  store i8 %131, ptr %130, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %40) #6
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #6
  store ptr %5, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #6
  %132 = load ptr, ptr %41, align 8, !tbaa !5
  %133 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %132) #6
  %134 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %42, i32 0, i32 0
  store ptr %133, ptr %134, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #6
  %135 = load ptr, ptr %41, align 8, !tbaa !5
  %136 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %135) #6
  %137 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %43, i32 0, i32 0
  store ptr %136, ptr %137, align 8
  br label %138

138:                                              ; preds = %177, %127
  %139 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(8) %43) #6
  br i1 %139, label %173, label %140

140:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  br label %183

141:                                              ; preds = %60, %0
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %9, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %403

145:                                              ; preds = %67, %62
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %9, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %403

149:                                              ; preds = %76, %69
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %9, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %403

153:                                              ; preds = %85, %78
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %9, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %403

157:                                              ; preds = %94, %87
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %9, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %403

161:                                              ; preds = %103, %96
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %9, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %403

165:                                              ; preds = %114, %105
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %9, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  br label %403

169:                                              ; preds = %125, %116
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %9, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  br label %403

173:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #6
  %174 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %42) #6
  store ptr %174, ptr %44, align 8, !tbaa !5
  %175 = load ptr, ptr %44, align 8, !tbaa !5
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 4 dereferenceable(8) %175)
          to label %176 unwind label %179

176:                                              ; preds = %173
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  br label %177

177:                                              ; preds = %176
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %42) #6
  br label %138

179:                                              ; preds = %173
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %9, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  br label %402

183:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #6
  store i32 0, ptr %45, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #6
  %184 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  %185 = trunc i64 %184 to i32
  store i32 %185, ptr %46, align 4, !tbaa !9
  br label %186

186:                                              ; preds = %376, %183
  %187 = load i32, ptr %45, align 4, !tbaa !9
  %188 = load i32, ptr %46, align 4, !tbaa !9
  %189 = shl i32 1, %188
  %190 = icmp slt i32 %187, %189
  br i1 %190, label %192, label %191

191:                                              ; preds = %186
  store i32 4, ptr %47, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  br label %381

192:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #6
  store i32 0, ptr %48, align 4, !tbaa !9
  invoke void @"_ZZ5solvevENK3$_0clEPA21_c"(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef @_ZZ5solvevE3tmp)
          to label %193 unwind label %207

193:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 24, ptr %49) #6
  %194 = getelementptr inbounds %class.anon.5, ptr %49, i32 0, i32 0
  store ptr %1, ptr %194, align 8, !tbaa !5
  %195 = getelementptr inbounds %class.anon.5, ptr %49, i32 0, i32 1
  store ptr %2, ptr %195, align 8, !tbaa !5
  %196 = getelementptr inbounds %class.anon.5, ptr %49, i32 0, i32 2
  store ptr %48, ptr %196, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %50) #6
  store i8 0, ptr %50, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #6
  store i32 0, ptr %51, align 4, !tbaa !9
  br label %197

197:                                              ; preds = %273, %193
  %198 = load i8, ptr %50, align 1, !tbaa !11, !range !13, !noundef !14
  %199 = trunc i8 %198 to i1
  br i1 %199, label %204, label %200

200:                                              ; preds = %197
  %201 = load i32, ptr %51, align 4, !tbaa !9
  %202 = load i32, ptr %46, align 4, !tbaa !9
  %203 = icmp slt i32 %201, %202
  br label %204

204:                                              ; preds = %200, %197
  %205 = phi i1 [ false, %197 ], [ %203, %200 ]
  br i1 %205, label %211, label %206

206:                                              ; preds = %204
  store i32 7, ptr %47, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #6
  br label %276

207:                                              ; preds = %192
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %9, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %10, align 4
  br label %380

211:                                              ; preds = %204
  %212 = load i32, ptr %45, align 4, !tbaa !9
  %213 = load i32, ptr %51, align 4, !tbaa !9
  %214 = ashr i32 %212, %213
  %215 = and i32 %214, 1
  %216 = icmp ne i32 %215, 0
  br i1 %216, label %217, label %257

217:                                              ; preds = %211
  %218 = load i32, ptr %51, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %219) #6
  %221 = getelementptr inbounds %"struct.std::pair.0", ptr %220, i32 0, i32 0
  %222 = load i32, ptr %221, align 4, !tbaa !15
  %223 = load i32, ptr %51, align 4, !tbaa !9
  %224 = sext i32 %223 to i64
  %225 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %224) #6
  %226 = getelementptr inbounds %"struct.std::pair.0", ptr %225, i32 0, i32 1
  %227 = load i32, ptr %226, align 4, !tbaa !17
  invoke void @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %49, i32 noundef %222, i32 noundef %227)
          to label %228 unwind label %253

228:                                              ; preds = %217
  %229 = load i32, ptr %51, align 4, !tbaa !9
  %230 = sext i32 %229 to i64
  %231 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %230) #6
  %232 = getelementptr inbounds %"struct.std::pair.0", ptr %231, i32 0, i32 0
  %233 = load i32, ptr %232, align 4, !tbaa !15
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %234
  %236 = load i32, ptr %51, align 4, !tbaa !9
  %237 = sext i32 %236 to i64
  %238 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %237) #6
  %239 = getelementptr inbounds %"struct.std::pair.0", ptr %238, i32 0, i32 1
  %240 = load i32, ptr %239, align 4, !tbaa !17
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [21 x i8], ptr %235, i64 0, i64 %241
  %243 = load i8, ptr %242, align 1, !tbaa !18
  %244 = sext i8 %243 to i32
  %245 = icmp ne i32 %244, 49
  %246 = zext i1 %245 to i32
  %247 = load i8, ptr %50, align 1, !tbaa !11, !range !13, !noundef !14
  %248 = trunc i8 %247 to i1
  %249 = zext i1 %248 to i32
  %250 = or i32 %249, %246
  %251 = icmp ne i32 %250, 0
  %252 = zext i1 %251 to i8
  store i8 %252, ptr %50, align 1, !tbaa !11
  br label %272

253:                                              ; preds = %217
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %9, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #6
  br label %379

257:                                              ; preds = %211
  %258 = load i32, ptr %51, align 4, !tbaa !9
  %259 = sext i32 %258 to i64
  %260 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %259) #6
  %261 = getelementptr inbounds %"struct.std::pair.0", ptr %260, i32 0, i32 0
  %262 = load i32, ptr %261, align 4, !tbaa !15
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %263
  %265 = load i32, ptr %51, align 4, !tbaa !9
  %266 = sext i32 %265 to i64
  %267 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %266) #6
  %268 = getelementptr inbounds %"struct.std::pair.0", ptr %267, i32 0, i32 1
  %269 = load i32, ptr %268, align 4, !tbaa !17
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [21 x i8], ptr %264, i64 0, i64 %270
  store i8 42, ptr %271, align 1, !tbaa !18
  br label %272

272:                                              ; preds = %257, %228
  br label %273

273:                                              ; preds = %272
  %274 = load i32, ptr %51, align 4, !tbaa !9
  %275 = add nsw i32 %274, 1
  store i32 %275, ptr %51, align 4, !tbaa !9
  br label %197, !llvm.loop !19

276:                                              ; preds = %206
  %277 = load i8, ptr %50, align 1, !tbaa !11, !range !13, !noundef !14
  %278 = trunc i8 %277 to i1
  br i1 %278, label %279, label %280

279:                                              ; preds = %276
  store i32 6, ptr %47, align 4
  br label %373

280:                                              ; preds = %276
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #6
  store i32 0, ptr %52, align 4, !tbaa !9
  br label %281

281:                                              ; preds = %293, %280
  %282 = load i32, ptr %52, align 4, !tbaa !9
  %283 = load i32, ptr %2, align 4, !tbaa !9
  %284 = icmp slt i32 %282, %283
  br i1 %284, label %286, label %285

285:                                              ; preds = %281
  store i32 10, ptr %47, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #6
  br label %300

286:                                              ; preds = %281
  %287 = load i32, ptr %52, align 4, !tbaa !9
  invoke void @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %49, i32 noundef 0, i32 noundef %287)
          to label %288 unwind label %296

288:                                              ; preds = %286
  %289 = load i32, ptr %1, align 4, !tbaa !9
  %290 = sub nsw i32 %289, 1
  %291 = load i32, ptr %52, align 4, !tbaa !9
  invoke void @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %49, i32 noundef %290, i32 noundef %291)
          to label %292 unwind label %296

292:                                              ; preds = %288
  br label %293

293:                                              ; preds = %292
  %294 = load i32, ptr %52, align 4, !tbaa !9
  %295 = add nsw i32 %294, 1
  store i32 %295, ptr %52, align 4, !tbaa !9
  br label %281, !llvm.loop !21

296:                                              ; preds = %288, %286
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %9, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #6
  br label %379

300:                                              ; preds = %285
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #6
  store i32 0, ptr %53, align 4, !tbaa !9
  br label %301

301:                                              ; preds = %313, %300
  %302 = load i32, ptr %53, align 4, !tbaa !9
  %303 = load i32, ptr %1, align 4, !tbaa !9
  %304 = icmp slt i32 %302, %303
  br i1 %304, label %306, label %305

305:                                              ; preds = %301
  store i32 13, ptr %47, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #6
  br label %320

306:                                              ; preds = %301
  %307 = load i32, ptr %53, align 4, !tbaa !9
  invoke void @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %49, i32 noundef %307, i32 noundef 0)
          to label %308 unwind label %316

308:                                              ; preds = %306
  %309 = load i32, ptr %53, align 4, !tbaa !9
  %310 = load i32, ptr %2, align 4, !tbaa !9
  %311 = sub nsw i32 %310, 1
  invoke void @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %49, i32 noundef %309, i32 noundef %311)
          to label %312 unwind label %316

312:                                              ; preds = %308
  br label %313

313:                                              ; preds = %312
  %314 = load i32, ptr %53, align 4, !tbaa !9
  %315 = add nsw i32 %314, 1
  store i32 %315, ptr %53, align 4, !tbaa !9
  br label %301, !llvm.loop !22

316:                                              ; preds = %308, %306
  %317 = landingpad { ptr, i32 }
          cleanup
  %318 = extractvalue { ptr, i32 } %317, 0
  store ptr %318, ptr %9, align 8
  %319 = extractvalue { ptr, i32 } %317, 1
  store i32 %319, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #6
  br label %379

320:                                              ; preds = %305
  %321 = load i32, ptr %4, align 4, !tbaa !9
  %322 = load i32, ptr %48, align 4, !tbaa !9
  %323 = icmp slt i32 %321, %322
  br i1 %323, label %324, label %372

324:                                              ; preds = %320
  %325 = load i32, ptr %48, align 4, !tbaa !9
  store i32 %325, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #6
  store i32 0, ptr %54, align 4, !tbaa !9
  br label %326

326:                                              ; preds = %368, %324
  %327 = load i32, ptr %54, align 4, !tbaa !9
  %328 = load i32, ptr %1, align 4, !tbaa !9
  %329 = icmp slt i32 %327, %328
  br i1 %329, label %331, label %330

330:                                              ; preds = %326
  store i32 16, ptr %47, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #6
  br label %371

331:                                              ; preds = %326
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #6
  store i32 0, ptr %55, align 4, !tbaa !9
  br label %332

332:                                              ; preds = %355, %331
  %333 = load i32, ptr %55, align 4, !tbaa !9
  %334 = load i32, ptr %2, align 4, !tbaa !9
  %335 = icmp slt i32 %333, %334
  br i1 %335, label %337, label %336

336:                                              ; preds = %332
  store i32 19, ptr %47, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #6
  br label %358

337:                                              ; preds = %332
  %338 = load i32, ptr %54, align 4, !tbaa !9
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %339
  %341 = load i32, ptr %55, align 4, !tbaa !9
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds [21 x i8], ptr %340, i64 0, i64 %342
  %344 = load i8, ptr %343, align 1, !tbaa !18
  %345 = sext i8 %344 to i32
  %346 = icmp eq i32 %345, 42
  br i1 %346, label %347, label %354

347:                                              ; preds = %337
  %348 = load i32, ptr %54, align 4, !tbaa !9
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %349
  %351 = load i32, ptr %55, align 4, !tbaa !9
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds [21 x i8], ptr %350, i64 0, i64 %352
  store i8 48, ptr %353, align 1, !tbaa !18
  br label %354

354:                                              ; preds = %347, %337
  br label %355

355:                                              ; preds = %354
  %356 = load i32, ptr %55, align 4, !tbaa !9
  %357 = add nsw i32 %356, 1
  store i32 %357, ptr %55, align 4, !tbaa !9
  br label %332, !llvm.loop !23

358:                                              ; preds = %336
  %359 = load i32, ptr %54, align 4, !tbaa !9
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3ans, i64 0, i64 %360
  %362 = getelementptr inbounds [21 x i8], ptr %361, i64 0, i64 0
  %363 = load i32, ptr %54, align 4, !tbaa !9
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %364
  %366 = getelementptr inbounds [21 x i8], ptr %365, i64 0, i64 0
  %367 = call ptr @strcpy(ptr noundef %362, ptr noundef %366) #6
  br label %368

368:                                              ; preds = %358
  %369 = load i32, ptr %54, align 4, !tbaa !9
  %370 = add nsw i32 %369, 1
  store i32 %370, ptr %54, align 4, !tbaa !9
  br label %326, !llvm.loop !24

371:                                              ; preds = %330
  br label %372

372:                                              ; preds = %371, %320
  store i32 0, ptr %47, align 4
  br label %373

373:                                              ; preds = %372, %279
  call void @llvm.lifetime.end.p0(i64 1, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #6
  %374 = load i32, ptr %47, align 4
  switch i32 %374, label %409 [
    i32 0, label %375
    i32 6, label %376
  ]

375:                                              ; preds = %373
  br label %376

376:                                              ; preds = %375, %373
  %377 = load i32, ptr %45, align 4, !tbaa !9
  %378 = add nsw i32 %377, 1
  store i32 %378, ptr %45, align 4, !tbaa !9
  br label %186, !llvm.loop !25

379:                                              ; preds = %316, %296, %253
  call void @llvm.lifetime.end.p0(i64 1, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %49) #6
  br label %380

380:                                              ; preds = %379, %207
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  br label %402

381:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #6
  store i32 0, ptr %56, align 4, !tbaa !9
  br label %382

382:                                              ; preds = %394, %381
  %383 = load i32, ptr %56, align 4, !tbaa !9
  %384 = load i32, ptr %1, align 4, !tbaa !9
  %385 = icmp slt i32 %383, %384
  br i1 %385, label %387, label %386

386:                                              ; preds = %382
  store i32 22, ptr %47, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #6
  br label %401

387:                                              ; preds = %382
  %388 = load i32, ptr %56, align 4, !tbaa !9
  %389 = sext i32 %388 to i64
  %390 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3ans, i64 0, i64 %389
  %391 = getelementptr inbounds [21 x i8], ptr %390, i64 0, i64 0
  %392 = invoke i32 @puts(ptr noundef %391)
          to label %393 unwind label %397

393:                                              ; preds = %387
  br label %394

394:                                              ; preds = %393
  %395 = load i32, ptr %56, align 4, !tbaa !9
  %396 = add nsw i32 %395, 1
  store i32 %396, ptr %56, align 4, !tbaa !9
  br label %382, !llvm.loop !26

397:                                              ; preds = %387
  %398 = landingpad { ptr, i32 }
          cleanup
  %399 = extractvalue { ptr, i32 } %398, 0
  store ptr %399, ptr %9, align 8
  %400 = extractvalue { ptr, i32 } %398, 1
  store i32 %400, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #6
  br label %402

401:                                              ; preds = %386
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %40) #6
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void

402:                                              ; preds = %397, %380, %179
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %40) #6
  br label %403

403:                                              ; preds = %402, %169, %165, %161, %157, %153, %149, %145, %141
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  br label %404

404:                                              ; preds = %403
  %405 = load ptr, ptr %9, align 8
  %406 = load i32, ptr %10, align 4
  %407 = insertvalue { ptr, i32 } poison, ptr %405, 0
  %408 = insertvalue { ptr, i32 } %407, i32 %406, 1
  resume { ptr, i32 } %408

409:                                              ; preds = %373
  unreachable
}

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZ5solvevENK3$_0clEPA21_c"(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #5

declare i32 @puts(ptr noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 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 = { 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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !10, i64 0}
!16 = !{!"_ZTSSt4pairIiiE", !10, i64 0, !10, i64 4}
!17 = !{!16, !10, i64 4}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}


; 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.anon = type { ptr, ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair.0" = type { i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%class.anon.5 = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_ZZ5solvevE3ans = external hidden global [21 x [21 x i8]], align 16
@_ZZ5solvevE3tmp = external hidden global [21 x [21 x i8]], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %class.anon, align 8
  %4 = alloca %"class.std::set", align 8
  %5 = alloca %"struct.std::pair.0", align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::pair.0", align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::pair.0", align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::pair.0", align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::pair.0", align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"struct.std::pair.0", align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"struct.std::pair.0", align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %"struct.std::pair.0", align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca %"class.std::vector", align 8
  %30 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %31 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %32 = alloca i32, align 4
  %33 = alloca %class.anon.5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %34 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  store ptr %1, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %3, i64 8
  store ptr %2, ptr %35, align 8, !tbaa !5
  call void @"_ZZ5solvevENK3$_0clEPA21_c"(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull @_ZZ5solvevE3ans)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #6
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  store i32 1, ptr %7, align 4, !tbaa !9
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %36 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(8) %5)
          to label %37 unwind label %78

37:                                               ; preds = %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  store i32 1, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %38 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(8) %8)
          to label %39 unwind label %80

39:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  %40 = load i32, ptr %2, align 4, !tbaa !9
  %41 = add nsw i32 %40, -2
  store i32 %41, ptr %13, align 4, !tbaa !9
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %42 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %43 unwind label %82

43:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  store i32 1, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  %44 = load i32, ptr %2, align 4, !tbaa !9
  %45 = add nsw i32 %44, -1
  store i32 %45, ptr %16, align 4, !tbaa !9
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %46 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(8) %14)
          to label %47 unwind label %84

47:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  %48 = load i32, ptr %1, align 4, !tbaa !9
  %49 = add nsw i32 %48, -1
  store i32 %49, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #6
  store i32 1, ptr %19, align 4, !tbaa !9
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %50 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(8) %17)
          to label %51 unwind label %86

51:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #6
  %52 = load i32, ptr %1, align 4, !tbaa !9
  %53 = add nsw i32 %52, -2
  store i32 %53, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #6
  store i32 0, ptr %22, align 4, !tbaa !9
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %54 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(8) %20)
          to label %55 unwind label %88

55:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #6
  %56 = load i32, ptr %1, align 4, !tbaa !9
  %57 = add nsw i32 %56, -1
  store i32 %57, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #6
  %58 = load i32, ptr %2, align 4, !tbaa !9
  %59 = add nsw i32 %58, -2
  store i32 %59, ptr %25, align 4, !tbaa !9
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %25)
  %60 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(8) %23)
          to label %61 unwind label %90

61:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #6
  %62 = load i32, ptr %1, align 4, !tbaa !9
  %63 = add nsw i32 %62, -2
  store i32 %63, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #6
  %64 = load i32, ptr %2, align 4, !tbaa !9
  %65 = add nsw i32 %64, -1
  store i32 %65, ptr %28, align 4, !tbaa !9
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %26, ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %28)
  %66 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(8) %26)
          to label %67 unwind label %92

67:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %29) #6
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #6
  %68 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
  store ptr %68, ptr %30, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #6
  %69 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
  store ptr %69, ptr %31, align 8
  %70 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #6
  br i1 %70, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %95, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #6
  %71 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  %72 = trunc i64 %71 to i32
  %.not97 = icmp eq i32 %72, 31
  br i1 %.not97, label %.preheader, label %.lr.ph93

.lr.ph93:                                         ; preds = %._crit_edge
  %73 = shl nuw nsw i32 1, %72
  %74 = getelementptr inbounds i8, ptr %33, i64 8
  %75 = getelementptr inbounds i8, ptr %33, i64 16
  %76 = icmp slt i32 %72, 1
  %sext = shl i64 %71, 32
  %77 = ashr exact i64 %sext, 32
  br label %102

78:                                               ; preds = %0
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %291

80:                                               ; preds = %37
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %291

82:                                               ; preds = %39
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %291

84:                                               ; preds = %43
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %291

86:                                               ; preds = %47
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  br label %291

88:                                               ; preds = %51
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  br label %291

90:                                               ; preds = %55
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #6
  br label %291

92:                                               ; preds = %61
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #6
  br label %291

.lr.ph:                                           ; preds = %67, %95
  %94 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #6
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 4 dereferenceable(8) %94)
          to label %95 unwind label %98

95:                                               ; preds = %.lr.ph
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #6
  %97 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #6
  br i1 %97, label %.lr.ph, label %._crit_edge

98:                                               ; preds = %.lr.ph
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #6
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %29) #6
  br label %291

.preheader:                                       ; preds = %.loopexit, %._crit_edge
  %100 = load i32, ptr %1, align 4, !tbaa !9
  %101 = icmp sgt i32 %100, 0
  br i1 %101, label %.lr.ph95, label %._crit_edge96

102:                                              ; preds = %.lr.ph93, %.loopexit
  %.06391 = phi i32 [ 0, %.lr.ph93 ], [ %.2, %.loopexit ]
  %.06590 = phi i32 [ 0, %.lr.ph93 ], [ %285, %.loopexit ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %32) #6
  store i32 0, ptr %32, align 4, !tbaa !9
  call void @"_ZZ5solvevENK3$_0clEPA21_c"(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull @_ZZ5solvevE3tmp)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %33) #6
  store ptr %1, ptr %33, align 8, !tbaa !5
  store ptr %2, ptr %74, align 8, !tbaa !5
  store ptr %32, ptr %75, align 8, !tbaa !5
  br i1 %76, label %.preheader74, label %.lr.ph78

._crit_edge79:                                    ; preds = %110
  br i1 %123, label %.loopexit, label %.preheader74

.preheader74:                                     ; preds = %.thread, %102, %._crit_edge79
  %103 = load i32, ptr %2, align 4, !tbaa !9
  %104 = icmp sgt i32 %103, 0
  br i1 %104, label %.lr.ph81, label %.preheader73

.lr.ph78:                                         ; preds = %102, %.lr.ph78.backedge
  %indvars.iv = phi i64 [ %indvars.iv.be, %.lr.ph78.backedge ], [ 0, %102 ]
  %105 = trunc nuw nsw i64 %indvars.iv to i32
  %106 = shl nuw i32 1, %105
  %107 = and i32 %106, %.06590
  %.not = icmp eq i32 %107, 0
  %108 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %indvars.iv) #6
  %109 = load i32, ptr %108, align 4, !tbaa !11
  br i1 %.not, label %.thread, label %110

110:                                              ; preds = %.lr.ph78
  %111 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %indvars.iv) #6
  %112 = getelementptr inbounds i8, ptr %111, i64 4
  %113 = load i32, ptr %112, align 4, !tbaa !13
  call void @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %33, i32 noundef %109, i32 noundef %113)
  %114 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %indvars.iv) #6
  %115 = load i32, ptr %114, align 4, !tbaa !11
  %116 = sext i32 %115 to i64
  %117 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %indvars.iv) #6
  %118 = getelementptr inbounds i8, ptr %117, i64 4
  %119 = load i32, ptr %118, align 4, !tbaa !13
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %116, i64 %120
  %122 = load i8, ptr %121, align 1, !tbaa !14
  %123 = icmp ne i8 %122, 49
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %124 = icmp sge i64 %indvars.iv.next, %77
  %.not69 = select i1 %123, i1 true, i1 %124
  br i1 %.not69, label %._crit_edge79, label %.lr.ph78.backedge

.lr.ph78.backedge:                                ; preds = %110, %.thread
  %indvars.iv.be = phi i64 [ %indvars.iv.next, %110 ], [ %indvars.iv.next118, %.thread ]
  br label %.lr.ph78, !llvm.loop !15

.thread:                                          ; preds = %.lr.ph78
  %125 = sext i32 %109 to i64
  %126 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %indvars.iv) #6
  %127 = getelementptr inbounds i8, ptr %126, i64 4
  %128 = load i32, ptr %127, align 4, !tbaa !13
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %125, i64 %129
  store i8 42, ptr %130, align 1, !tbaa !14
  %indvars.iv.next118 = add nuw nsw i64 %indvars.iv, 1
  %.not125 = icmp slt i64 %indvars.iv.next118, %77
  br i1 %.not125, label %.lr.ph78.backedge, label %.preheader74

.preheader73:                                     ; preds = %.lr.ph81, %.preheader74
  %131 = load i32, ptr %1, align 4, !tbaa !9
  %132 = icmp sgt i32 %131, 0
  br i1 %132, label %.lr.ph83, label %._crit_edge84

.lr.ph81:                                         ; preds = %.preheader74, %.lr.ph81
  %.06080 = phi i32 [ %135, %.lr.ph81 ], [ 0, %.preheader74 ]
  call void @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %33, i32 noundef 0, i32 noundef %.06080)
  %133 = load i32, ptr %1, align 4, !tbaa !9
  %134 = add nsw i32 %133, -1
  call void @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %33, i32 noundef %134, i32 noundef %.06080)
  %135 = add nuw nsw i32 %.06080, 1
  %136 = load i32, ptr %2, align 4, !tbaa !9
  %137 = icmp slt i32 %135, %136
  br i1 %137, label %.lr.ph81, label %.preheader73, !llvm.loop !17

._crit_edge84:                                    ; preds = %.lr.ph83, %.preheader73
  %.lcssa = phi i32 [ %131, %.preheader73 ], [ %280, %.lr.ph83 ]
  %138 = load i32, ptr %32, align 4, !tbaa !9
  %139 = icmp slt i32 %.06391, %138
  br i1 %139, label %.preheader72, label %.loopexit

.preheader72:                                     ; preds = %._crit_edge84
  %140 = icmp sgt i32 %.lcssa, 0
  br i1 %140, label %.preheader71.lr.ph, label %.loopexit

.preheader71.lr.ph:                               ; preds = %.preheader72
  %141 = load i32, ptr %2, align 4, !tbaa !9
  %142 = icmp sgt i32 %141, 0
  %wide.trip.count111 = zext nneg i32 %.lcssa to i64
  br i1 %142, label %.preheader71.us.preheader, label %.preheader71

.preheader71.us.preheader:                        ; preds = %.preheader71.lr.ph
  %wide.trip.count106 = zext nneg i32 %141 to i64
  %min.iters.check = icmp ult i32 %141, 8
  %min.iters.check129 = icmp ult i32 %141, 32
  %n.vec = and i64 %wide.trip.count106, 2147483616
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count106
  %n.vec.remaining = and i64 %wide.trip.count106, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  %n.vec194 = and i64 %wide.trip.count106, 2147483640
  %cmp.n214 = icmp eq i64 %n.vec194, %wide.trip.count106
  br label %iter.check

iter.check:                                       ; preds = %.preheader71.us.preheader, %._crit_edge88.us
  %indvars.iv108 = phi i64 [ 0, %.preheader71.us.preheader ], [ %indvars.iv.next109, %._crit_edge88.us ]
  br i1 %min.iters.check, label %vec.epilog.scalar.ph.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %iter.check
  br i1 %min.iters.check129, label %vec.epilog.ph, label %vector.body

vector.body:                                      ; preds = %vector.main.loop.iter.check, %pred.store.continue192
  %index = phi i64 [ %index.next, %pred.store.continue192 ], [ 0, %vector.main.loop.iter.check ]
  %143 = or disjoint i64 %index, 16
  %144 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %index
  %145 = getelementptr inbounds i8, ptr %144, i64 16
  %wide.load = load <16 x i8>, ptr %144, align 1, !tbaa !14
  %wide.load130 = load <16 x i8>, ptr %145, align 1, !tbaa !14
  %146 = icmp eq <16 x i8> %wide.load, <i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42>
  %147 = icmp eq <16 x i8> %wide.load130, <i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42>
  %148 = extractelement <16 x i1> %146, i64 0
  br i1 %148, label %pred.store.if, label %pred.store.continue

pred.store.if:                                    ; preds = %vector.body
  %149 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %index
  store i8 48, ptr %149, align 1, !tbaa !14
  br label %pred.store.continue

pred.store.continue:                              ; preds = %pred.store.if, %vector.body
  %150 = extractelement <16 x i1> %146, i64 1
  br i1 %150, label %pred.store.if131, label %pred.store.continue132

pred.store.if131:                                 ; preds = %pred.store.continue
  %151 = or disjoint i64 %index, 1
  %152 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %151
  store i8 48, ptr %152, align 1, !tbaa !14
  br label %pred.store.continue132

pred.store.continue132:                           ; preds = %pred.store.if131, %pred.store.continue
  %153 = extractelement <16 x i1> %146, i64 2
  br i1 %153, label %pred.store.if133, label %pred.store.continue134

pred.store.if133:                                 ; preds = %pred.store.continue132
  %154 = or disjoint i64 %index, 2
  %155 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %154
  store i8 48, ptr %155, align 1, !tbaa !14
  br label %pred.store.continue134

pred.store.continue134:                           ; preds = %pred.store.if133, %pred.store.continue132
  %156 = extractelement <16 x i1> %146, i64 3
  br i1 %156, label %pred.store.if135, label %pred.store.continue136

pred.store.if135:                                 ; preds = %pred.store.continue134
  %157 = or disjoint i64 %index, 3
  %158 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %157
  store i8 48, ptr %158, align 1, !tbaa !14
  br label %pred.store.continue136

pred.store.continue136:                           ; preds = %pred.store.if135, %pred.store.continue134
  %159 = extractelement <16 x i1> %146, i64 4
  br i1 %159, label %pred.store.if137, label %pred.store.continue138

pred.store.if137:                                 ; preds = %pred.store.continue136
  %160 = or disjoint i64 %index, 4
  %161 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %160
  store i8 48, ptr %161, align 1, !tbaa !14
  br label %pred.store.continue138

pred.store.continue138:                           ; preds = %pred.store.if137, %pred.store.continue136
  %162 = extractelement <16 x i1> %146, i64 5
  br i1 %162, label %pred.store.if139, label %pred.store.continue140

pred.store.if139:                                 ; preds = %pred.store.continue138
  %163 = or disjoint i64 %index, 5
  %164 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %163
  store i8 48, ptr %164, align 1, !tbaa !14
  br label %pred.store.continue140

pred.store.continue140:                           ; preds = %pred.store.if139, %pred.store.continue138
  %165 = extractelement <16 x i1> %146, i64 6
  br i1 %165, label %pred.store.if141, label %pred.store.continue142

pred.store.if141:                                 ; preds = %pred.store.continue140
  %166 = or disjoint i64 %index, 6
  %167 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %166
  store i8 48, ptr %167, align 1, !tbaa !14
  br label %pred.store.continue142

pred.store.continue142:                           ; preds = %pred.store.if141, %pred.store.continue140
  %168 = extractelement <16 x i1> %146, i64 7
  br i1 %168, label %pred.store.if143, label %pred.store.continue144

pred.store.if143:                                 ; preds = %pred.store.continue142
  %169 = or disjoint i64 %index, 7
  %170 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %169
  store i8 48, ptr %170, align 1, !tbaa !14
  br label %pred.store.continue144

pred.store.continue144:                           ; preds = %pred.store.if143, %pred.store.continue142
  %171 = extractelement <16 x i1> %146, i64 8
  br i1 %171, label %pred.store.if145, label %pred.store.continue146

pred.store.if145:                                 ; preds = %pred.store.continue144
  %172 = or disjoint i64 %index, 8
  %173 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %172
  store i8 48, ptr %173, align 1, !tbaa !14
  br label %pred.store.continue146

pred.store.continue146:                           ; preds = %pred.store.if145, %pred.store.continue144
  %174 = extractelement <16 x i1> %146, i64 9
  br i1 %174, label %pred.store.if147, label %pred.store.continue148

pred.store.if147:                                 ; preds = %pred.store.continue146
  %175 = or disjoint i64 %index, 9
  %176 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %175
  store i8 48, ptr %176, align 1, !tbaa !14
  br label %pred.store.continue148

pred.store.continue148:                           ; preds = %pred.store.if147, %pred.store.continue146
  %177 = extractelement <16 x i1> %146, i64 10
  br i1 %177, label %pred.store.if149, label %pred.store.continue150

pred.store.if149:                                 ; preds = %pred.store.continue148
  %178 = or disjoint i64 %index, 10
  %179 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %178
  store i8 48, ptr %179, align 1, !tbaa !14
  br label %pred.store.continue150

pred.store.continue150:                           ; preds = %pred.store.if149, %pred.store.continue148
  %180 = extractelement <16 x i1> %146, i64 11
  br i1 %180, label %pred.store.if151, label %pred.store.continue152

pred.store.if151:                                 ; preds = %pred.store.continue150
  %181 = or disjoint i64 %index, 11
  %182 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %181
  store i8 48, ptr %182, align 1, !tbaa !14
  br label %pred.store.continue152

pred.store.continue152:                           ; preds = %pred.store.if151, %pred.store.continue150
  %183 = extractelement <16 x i1> %146, i64 12
  br i1 %183, label %pred.store.if153, label %pred.store.continue154

pred.store.if153:                                 ; preds = %pred.store.continue152
  %184 = or disjoint i64 %index, 12
  %185 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %184
  store i8 48, ptr %185, align 1, !tbaa !14
  br label %pred.store.continue154

pred.store.continue154:                           ; preds = %pred.store.if153, %pred.store.continue152
  %186 = extractelement <16 x i1> %146, i64 13
  br i1 %186, label %pred.store.if155, label %pred.store.continue156

pred.store.if155:                                 ; preds = %pred.store.continue154
  %187 = or disjoint i64 %index, 13
  %188 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %187
  store i8 48, ptr %188, align 1, !tbaa !14
  br label %pred.store.continue156

pred.store.continue156:                           ; preds = %pred.store.if155, %pred.store.continue154
  %189 = extractelement <16 x i1> %146, i64 14
  br i1 %189, label %pred.store.if157, label %pred.store.continue158

pred.store.if157:                                 ; preds = %pred.store.continue156
  %190 = or disjoint i64 %index, 14
  %191 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %190
  store i8 48, ptr %191, align 1, !tbaa !14
  br label %pred.store.continue158

pred.store.continue158:                           ; preds = %pred.store.if157, %pred.store.continue156
  %192 = extractelement <16 x i1> %146, i64 15
  br i1 %192, label %pred.store.if159, label %pred.store.continue160

pred.store.if159:                                 ; preds = %pred.store.continue158
  %193 = or disjoint i64 %index, 15
  %194 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %193
  store i8 48, ptr %194, align 1, !tbaa !14
  br label %pred.store.continue160

pred.store.continue160:                           ; preds = %pred.store.if159, %pred.store.continue158
  %195 = extractelement <16 x i1> %147, i64 0
  br i1 %195, label %pred.store.if161, label %pred.store.continue162

pred.store.if161:                                 ; preds = %pred.store.continue160
  %196 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %143
  store i8 48, ptr %196, align 1, !tbaa !14
  br label %pred.store.continue162

pred.store.continue162:                           ; preds = %pred.store.if161, %pred.store.continue160
  %197 = extractelement <16 x i1> %147, i64 1
  br i1 %197, label %pred.store.if163, label %pred.store.continue164

pred.store.if163:                                 ; preds = %pred.store.continue162
  %198 = or disjoint i64 %index, 17
  %199 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %198
  store i8 48, ptr %199, align 1, !tbaa !14
  br label %pred.store.continue164

pred.store.continue164:                           ; preds = %pred.store.if163, %pred.store.continue162
  %200 = extractelement <16 x i1> %147, i64 2
  br i1 %200, label %pred.store.if165, label %pred.store.continue166

pred.store.if165:                                 ; preds = %pred.store.continue164
  %201 = or disjoint i64 %index, 18
  %202 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %201
  store i8 48, ptr %202, align 1, !tbaa !14
  br label %pred.store.continue166

pred.store.continue166:                           ; preds = %pred.store.if165, %pred.store.continue164
  %203 = extractelement <16 x i1> %147, i64 3
  br i1 %203, label %pred.store.if167, label %pred.store.continue168

pred.store.if167:                                 ; preds = %pred.store.continue166
  %204 = or disjoint i64 %index, 19
  %205 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %204
  store i8 48, ptr %205, align 1, !tbaa !14
  br label %pred.store.continue168

pred.store.continue168:                           ; preds = %pred.store.if167, %pred.store.continue166
  %206 = extractelement <16 x i1> %147, i64 4
  br i1 %206, label %pred.store.if169, label %pred.store.continue170

pred.store.if169:                                 ; preds = %pred.store.continue168
  %207 = or disjoint i64 %index, 20
  %208 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %207
  store i8 48, ptr %208, align 1, !tbaa !14
  br label %pred.store.continue170

pred.store.continue170:                           ; preds = %pred.store.if169, %pred.store.continue168
  %209 = extractelement <16 x i1> %147, i64 5
  br i1 %209, label %pred.store.if171, label %pred.store.continue172

pred.store.if171:                                 ; preds = %pred.store.continue170
  %210 = or disjoint i64 %index, 21
  %211 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %210
  store i8 48, ptr %211, align 1, !tbaa !14
  br label %pred.store.continue172

pred.store.continue172:                           ; preds = %pred.store.if171, %pred.store.continue170
  %212 = extractelement <16 x i1> %147, i64 6
  br i1 %212, label %pred.store.if173, label %pred.store.continue174

pred.store.if173:                                 ; preds = %pred.store.continue172
  %213 = or disjoint i64 %index, 22
  %214 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %213
  store i8 48, ptr %214, align 1, !tbaa !14
  br label %pred.store.continue174

pred.store.continue174:                           ; preds = %pred.store.if173, %pred.store.continue172
  %215 = extractelement <16 x i1> %147, i64 7
  br i1 %215, label %pred.store.if175, label %pred.store.continue176

pred.store.if175:                                 ; preds = %pred.store.continue174
  %216 = or disjoint i64 %index, 23
  %217 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %216
  store i8 48, ptr %217, align 1, !tbaa !14
  br label %pred.store.continue176

pred.store.continue176:                           ; preds = %pred.store.if175, %pred.store.continue174
  %218 = extractelement <16 x i1> %147, i64 8
  br i1 %218, label %pred.store.if177, label %pred.store.continue178

pred.store.if177:                                 ; preds = %pred.store.continue176
  %219 = or disjoint i64 %index, 24
  %220 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %219
  store i8 48, ptr %220, align 1, !tbaa !14
  br label %pred.store.continue178

pred.store.continue178:                           ; preds = %pred.store.if177, %pred.store.continue176
  %221 = extractelement <16 x i1> %147, i64 9
  br i1 %221, label %pred.store.if179, label %pred.store.continue180

pred.store.if179:                                 ; preds = %pred.store.continue178
  %222 = or disjoint i64 %index, 25
  %223 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %222
  store i8 48, ptr %223, align 1, !tbaa !14
  br label %pred.store.continue180

pred.store.continue180:                           ; preds = %pred.store.if179, %pred.store.continue178
  %224 = extractelement <16 x i1> %147, i64 10
  br i1 %224, label %pred.store.if181, label %pred.store.continue182

pred.store.if181:                                 ; preds = %pred.store.continue180
  %225 = or disjoint i64 %index, 26
  %226 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %225
  store i8 48, ptr %226, align 1, !tbaa !14
  br label %pred.store.continue182

pred.store.continue182:                           ; preds = %pred.store.if181, %pred.store.continue180
  %227 = extractelement <16 x i1> %147, i64 11
  br i1 %227, label %pred.store.if183, label %pred.store.continue184

pred.store.if183:                                 ; preds = %pred.store.continue182
  %228 = or disjoint i64 %index, 27
  %229 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %228
  store i8 48, ptr %229, align 1, !tbaa !14
  br label %pred.store.continue184

pred.store.continue184:                           ; preds = %pred.store.if183, %pred.store.continue182
  %230 = extractelement <16 x i1> %147, i64 12
  br i1 %230, label %pred.store.if185, label %pred.store.continue186

pred.store.if185:                                 ; preds = %pred.store.continue184
  %231 = or disjoint i64 %index, 28
  %232 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %231
  store i8 48, ptr %232, align 1, !tbaa !14
  br label %pred.store.continue186

pred.store.continue186:                           ; preds = %pred.store.if185, %pred.store.continue184
  %233 = extractelement <16 x i1> %147, i64 13
  br i1 %233, label %pred.store.if187, label %pred.store.continue188

pred.store.if187:                                 ; preds = %pred.store.continue186
  %234 = or disjoint i64 %index, 29
  %235 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %234
  store i8 48, ptr %235, align 1, !tbaa !14
  br label %pred.store.continue188

pred.store.continue188:                           ; preds = %pred.store.if187, %pred.store.continue186
  %236 = extractelement <16 x i1> %147, i64 14
  br i1 %236, label %pred.store.if189, label %pred.store.continue190

pred.store.if189:                                 ; preds = %pred.store.continue188
  %237 = or disjoint i64 %index, 30
  %238 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %237
  store i8 48, ptr %238, align 1, !tbaa !14
  br label %pred.store.continue190

pred.store.continue190:                           ; preds = %pred.store.if189, %pred.store.continue188
  %239 = extractelement <16 x i1> %147, i64 15
  br i1 %239, label %pred.store.if191, label %pred.store.continue192

pred.store.if191:                                 ; preds = %pred.store.continue190
  %240 = or disjoint i64 %index, 31
  %241 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %240
  store i8 48, ptr %241, align 1, !tbaa !14
  br label %pred.store.continue192

pred.store.continue192:                           ; preds = %pred.store.if191, %pred.store.continue190
  %index.next = add nuw i64 %index, 32
  %242 = icmp eq i64 %index.next, %n.vec
  br i1 %242, label %middle.block, label %vector.body, !llvm.loop !18

middle.block:                                     ; preds = %pred.store.continue192
  br i1 %cmp.n, label %._crit_edge88.us, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block
  br i1 %min.epilog.iters.check, label %vec.epilog.scalar.ph.preheader, label %vec.epilog.ph

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %vec.epilog.resume.val = phi i64 [ %n.vec, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %pred.store.continue212, %vec.epilog.ph
  %index195 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next213, %pred.store.continue212 ]
  %243 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %index195
  %wide.load196 = load <8 x i8>, ptr %243, align 1, !tbaa !14
  %244 = icmp eq <8 x i8> %wide.load196, <i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42, i8 42>
  %245 = extractelement <8 x i1> %244, i64 0
  br i1 %245, label %pred.store.if197, label %pred.store.continue198

pred.store.if197:                                 ; preds = %vec.epilog.vector.body
  %246 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %index195
  store i8 48, ptr %246, align 1, !tbaa !14
  br label %pred.store.continue198

pred.store.continue198:                           ; preds = %pred.store.if197, %vec.epilog.vector.body
  %247 = extractelement <8 x i1> %244, i64 1
  br i1 %247, label %pred.store.if199, label %pred.store.continue200

pred.store.if199:                                 ; preds = %pred.store.continue198
  %248 = or disjoint i64 %index195, 1
  %249 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %248
  store i8 48, ptr %249, align 1, !tbaa !14
  br label %pred.store.continue200

pred.store.continue200:                           ; preds = %pred.store.if199, %pred.store.continue198
  %250 = extractelement <8 x i1> %244, i64 2
  br i1 %250, label %pred.store.if201, label %pred.store.continue202

pred.store.if201:                                 ; preds = %pred.store.continue200
  %251 = or disjoint i64 %index195, 2
  %252 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %251
  store i8 48, ptr %252, align 1, !tbaa !14
  br label %pred.store.continue202

pred.store.continue202:                           ; preds = %pred.store.if201, %pred.store.continue200
  %253 = extractelement <8 x i1> %244, i64 3
  br i1 %253, label %pred.store.if203, label %pred.store.continue204

pred.store.if203:                                 ; preds = %pred.store.continue202
  %254 = or disjoint i64 %index195, 3
  %255 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %254
  store i8 48, ptr %255, align 1, !tbaa !14
  br label %pred.store.continue204

pred.store.continue204:                           ; preds = %pred.store.if203, %pred.store.continue202
  %256 = extractelement <8 x i1> %244, i64 4
  br i1 %256, label %pred.store.if205, label %pred.store.continue206

pred.store.if205:                                 ; preds = %pred.store.continue204
  %257 = or disjoint i64 %index195, 4
  %258 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %257
  store i8 48, ptr %258, align 1, !tbaa !14
  br label %pred.store.continue206

pred.store.continue206:                           ; preds = %pred.store.if205, %pred.store.continue204
  %259 = extractelement <8 x i1> %244, i64 5
  br i1 %259, label %pred.store.if207, label %pred.store.continue208

pred.store.if207:                                 ; preds = %pred.store.continue206
  %260 = or disjoint i64 %index195, 5
  %261 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %260
  store i8 48, ptr %261, align 1, !tbaa !14
  br label %pred.store.continue208

pred.store.continue208:                           ; preds = %pred.store.if207, %pred.store.continue206
  %262 = extractelement <8 x i1> %244, i64 6
  br i1 %262, label %pred.store.if209, label %pred.store.continue210

pred.store.if209:                                 ; preds = %pred.store.continue208
  %263 = or disjoint i64 %index195, 6
  %264 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %263
  store i8 48, ptr %264, align 1, !tbaa !14
  br label %pred.store.continue210

pred.store.continue210:                           ; preds = %pred.store.if209, %pred.store.continue208
  %265 = extractelement <8 x i1> %244, i64 7
  br i1 %265, label %pred.store.if211, label %pred.store.continue212

pred.store.if211:                                 ; preds = %pred.store.continue210
  %266 = or disjoint i64 %index195, 7
  %267 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %266
  store i8 48, ptr %267, align 1, !tbaa !14
  br label %pred.store.continue212

pred.store.continue212:                           ; preds = %pred.store.if211, %pred.store.continue210
  %index.next213 = add nuw i64 %index195, 8
  %268 = icmp eq i64 %index.next213, %n.vec194
  br i1 %268, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !21

vec.epilog.middle.block:                          ; preds = %pred.store.continue212
  br i1 %cmp.n214, label %._crit_edge88.us, label %vec.epilog.scalar.ph.preheader

vec.epilog.scalar.ph.preheader:                   ; preds = %vec.epilog.middle.block, %iter.check, %vec.epilog.iter.check
  %indvars.iv103.ph = phi i64 [ 0, %iter.check ], [ %n.vec, %vec.epilog.iter.check ], [ %n.vec194, %vec.epilog.middle.block ]
  br label %vec.epilog.scalar.ph

vec.epilog.scalar.ph:                             ; preds = %vec.epilog.scalar.ph.preheader, %273
  %indvars.iv103 = phi i64 [ %indvars.iv.next104, %273 ], [ %indvars.iv103.ph, %vec.epilog.scalar.ph.preheader ]
  %269 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108, i64 %indvars.iv103
  %270 = load i8, ptr %269, align 1, !tbaa !14
  %271 = icmp eq i8 %270, 42
  br i1 %271, label %272, label %273

272:                                              ; preds = %vec.epilog.scalar.ph
  store i8 48, ptr %269, align 1, !tbaa !14
  br label %273

273:                                              ; preds = %272, %vec.epilog.scalar.ph
  %indvars.iv.next104 = add nuw nsw i64 %indvars.iv103, 1
  %exitcond107.not = icmp eq i64 %indvars.iv.next104, %wide.trip.count106
  br i1 %exitcond107.not, label %._crit_edge88.us, label %vec.epilog.scalar.ph, !llvm.loop !22

._crit_edge88.us:                                 ; preds = %273, %vec.epilog.middle.block, %middle.block
  %274 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3ans, i64 0, i64 %indvars.iv108
  %275 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv108
  %276 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %274, ptr noundef nonnull dereferenceable(1) %275) #6
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %exitcond112.not = icmp eq i64 %indvars.iv.next109, %wide.trip.count111
  br i1 %exitcond112.not, label %.loopexit, label %iter.check, !llvm.loop !23

.lr.ph83:                                         ; preds = %.preheader73, %.lr.ph83
  %.05982 = phi i32 [ %279, %.lr.ph83 ], [ 0, %.preheader73 ]
  call void @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %33, i32 noundef %.05982, i32 noundef 0)
  %277 = load i32, ptr %2, align 4, !tbaa !9
  %278 = add nsw i32 %277, -1
  call void @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24) %33, i32 noundef %.05982, i32 noundef %278)
  %279 = add nuw nsw i32 %.05982, 1
  %280 = load i32, ptr %1, align 4, !tbaa !9
  %281 = icmp slt i32 %279, %280
  br i1 %281, label %.lr.ph83, label %._crit_edge84, !llvm.loop !24

.preheader71:                                     ; preds = %.preheader71.lr.ph, %.preheader71
  %indvars.iv100 = phi i64 [ %indvars.iv.next101, %.preheader71 ], [ 0, %.preheader71.lr.ph ]
  %282 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3ans, i64 0, i64 %indvars.iv100
  %283 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3tmp, i64 0, i64 %indvars.iv100
  %284 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %282, ptr noundef nonnull dereferenceable(1) %283) #6
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next101, %wide.trip.count111
  br i1 %exitcond.not, label %.loopexit, label %.preheader71, !llvm.loop !23

.loopexit:                                        ; preds = %.preheader71, %._crit_edge88.us, %.preheader72, %._crit_edge84, %._crit_edge79
  %.2 = phi i32 [ %.06391, %._crit_edge79 ], [ %.06391, %._crit_edge84 ], [ %138, %.preheader72 ], [ %138, %._crit_edge88.us ], [ %138, %.preheader71 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #6
  %285 = add nuw nsw i32 %.06590, 1
  %exitcond113.not = icmp eq i32 %285, %73
  br i1 %exitcond113.not, label %.preheader, label %102, !llvm.loop !25

._crit_edge96:                                    ; preds = %.lr.ph95, %.preheader
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %29) #6
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret void

.lr.ph95:                                         ; preds = %.preheader, %.lr.ph95
  %indvars.iv114 = phi i64 [ %indvars.iv.next115, %.lr.ph95 ], [ 0, %.preheader ]
  %286 = getelementptr inbounds [21 x [21 x i8]], ptr @_ZZ5solvevE3ans, i64 0, i64 %indvars.iv114
  %287 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %286)
  %indvars.iv.next115 = add nuw nsw i64 %indvars.iv114, 1
  %288 = load i32, ptr %1, align 4, !tbaa !9
  %289 = sext i32 %288 to i64
  %290 = icmp slt i64 %indvars.iv.next115, %289
  br i1 %290, label %.lr.ph95, label %._crit_edge96, !llvm.loop !26

291:                                              ; preds = %98, %92, %90, %88, %86, %84, %82, %80, %78
  %.pn = phi { ptr, i32 } [ %99, %98 ], [ %93, %92 ], [ %91, %90 ], [ %89, %88 ], [ %87, %86 ], [ %85, %84 ], [ %83, %82 ], [ %81, %80 ], [ %79, %78 ]
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZ5solvevENK3$_0clEPA21_c"(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE6insertEOS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZ5solvevENK3$_1clEii"(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { 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 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!12, !10, i64 0}
!12 = !{!"_ZTSSt4pairIiiE", !10, i64 0, !10, i64 4}
!13 = !{!12, !10, i64 4}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16, !19, !20}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = distinct !{!21, !16, !19, !20}
!22 = distinct !{!22, !16, !20, !19}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !16}
!26 = distinct !{!26, !16}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass