; LLVM IR from Waqar144/simplecrypto-cxx :: simplecrypto-cxx/base58.ll (Z8b58tobinPhPmPKc)

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

%"struct.std::array" = type { [128 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZL13b58digits_map = external hidden constant %"struct.std::array", align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z8b58tobinPhPmPKc(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i8, align 1
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i64, align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = load i64, ptr %28, align 8, !tbaa !9
  store i64 %29, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %30, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %31, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %32 = load i64, ptr %8, align 8, !tbaa !9
  %33 = add i64 %32, 3
  %34 = udiv i64 %33, 4
  store i64 %34, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  %35 = load i64, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %35, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %36 unwind label %80

36:                                               ; preds = %3
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #5
  %37 = load i64, ptr %8, align 8, !tbaa !9
  %38 = urem i64 %37, 4
  %39 = trunc i64 %38 to i8
  store i8 %39, ptr %20, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %40 = load i8, ptr %20, align 1, !tbaa !11
  %41 = icmp ne i8 %40, 0
  br i1 %41, label %42, label %47

42:                                               ; preds = %36
  %43 = load i8, ptr %20, align 1, !tbaa !11
  %44 = zext i8 %43 to i32
  %45 = mul i32 %44, 8
  %46 = shl i32 -1, %45
  br label %48

47:                                               ; preds = %36
  br label %48

48:                                               ; preds = %47, %42
  %49 = phi i32 [ %46, %42 ], [ 0, %47 ]
  store i32 %49, ptr %21, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = call i64 @strlen(ptr noundef %50) #6
  store i64 %51, ptr %23, align 8, !tbaa !9
  %52 = call ptr @_ZNSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  %53 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %52, ptr %53, align 8
  %54 = call ptr @_ZNSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  %55 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %54, ptr %55, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  store i32 0, ptr %26, align 4, !tbaa !12
  %56 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8
  %58 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8
  invoke void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEEiEvT_S7_RKT0_(ptr %57, ptr %59, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %60 unwind label %84

60:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %61

61:                                               ; preds = %77, %60
  %62 = load i64, ptr %18, align 8, !tbaa !9
  %63 = load i64, ptr %23, align 8, !tbaa !9
  %64 = icmp ult i64 %62, %63
  br i1 %64, label %65, label %72

65:                                               ; preds = %61
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = load i64, ptr %18, align 8, !tbaa !9
  %68 = getelementptr inbounds i8, ptr %66, i64 %67
  %69 = load i8, ptr %68, align 1, !tbaa !11
  %70 = zext i8 %69 to i32
  %71 = icmp eq i32 %70, 49
  br label %72

72:                                               ; preds = %65, %61
  %73 = phi i1 [ false, %61 ], [ %71, %65 ]
  br i1 %73, label %74, label %88

74:                                               ; preds = %72
  %75 = load i32, ptr %22, align 4, !tbaa !12
  %76 = add i32 %75, 1
  store i32 %76, ptr %22, align 4, !tbaa !12
  br label %77

77:                                               ; preds = %74
  %78 = load i64, ptr %18, align 8, !tbaa !9
  %79 = add i64 %78, 1
  store i64 %79, ptr %18, align 8, !tbaa !9
  br label %61, !llvm.loop !14

80:                                               ; preds = %3
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %14, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %15, align 4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  br label %264

84:                                               ; preds = %48
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %14, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  br label %264

88:                                               ; preds = %72
  br label %89

89:                                               ; preds = %157, %88
  %90 = load i64, ptr %18, align 8, !tbaa !9
  %91 = load i64, ptr %23, align 8, !tbaa !9
  %92 = icmp ult i64 %90, %91
  br i1 %92, label %93, label %160

93:                                               ; preds = %89
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = load i64, ptr %18, align 8, !tbaa !9
  %96 = getelementptr inbounds i8, ptr %94, i64 %95
  %97 = load i8, ptr %96, align 1, !tbaa !11
  %98 = zext i8 %97 to i32
  %99 = and i32 %98, 128
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %102

101:                                              ; preds = %93
  store i1 false, ptr %4, align 1
  store i32 1, ptr %27, align 4
  br label %262

102:                                              ; preds = %93
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = load i64, ptr %18, align 8, !tbaa !9
  %105 = getelementptr inbounds i8, ptr %103, i64 %104
  %106 = load i8, ptr %105, align 1, !tbaa !11
  %107 = zext i8 %106 to i64
  %108 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIaLm128EEixEm(ptr noundef nonnull align 1 dereferenceable(128) @_ZL13b58digits_map, i64 noundef %107) #5
  %109 = load i8, ptr %108, align 1, !tbaa !11
  %110 = sext i8 %109 to i32
  %111 = icmp eq i32 %110, -1
  br i1 %111, label %112, label %113

112:                                              ; preds = %102
  store i1 false, ptr %4, align 1
  store i32 1, ptr %27, align 4
  br label %262

113:                                              ; preds = %102
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  %115 = load i64, ptr %18, align 8, !tbaa !9
  %116 = getelementptr inbounds i8, ptr %114, i64 %115
  %117 = load i8, ptr %116, align 1, !tbaa !11
  %118 = zext i8 %117 to i64
  %119 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIaLm128EEixEm(ptr noundef nonnull align 1 dereferenceable(128) @_ZL13b58digits_map, i64 noundef %118) #5
  %120 = load i8, ptr %119, align 1, !tbaa !11
  %121 = sext i8 %120 to i32
  store i32 %121, ptr %17, align 4, !tbaa !12
  %122 = load i64, ptr %11, align 8, !tbaa !9
  store i64 %122, ptr %19, align 8, !tbaa !9
  br label %123

123:                                              ; preds = %127, %113
  %124 = load i64, ptr %19, align 8, !tbaa !9
  %125 = add i64 %124, -1
  store i64 %125, ptr %19, align 8, !tbaa !9
  %126 = icmp ne i64 %124, 0
  br i1 %126, label %127, label %145

127:                                              ; preds = %123
  %128 = load i64, ptr %19, align 8, !tbaa !9
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %128) #5
  %130 = load i32, ptr %129, align 4, !tbaa !12
  %131 = zext i32 %130 to i64
  %132 = mul i64 %131, 58
  %133 = load i32, ptr %17, align 4, !tbaa !12
  %134 = zext i32 %133 to i64
  %135 = add i64 %132, %134
  store i64 %135, ptr %16, align 8, !tbaa !9
  %136 = load i64, ptr %16, align 8, !tbaa !9
  %137 = and i64 %136, 270582939648
  %138 = lshr i64 %137, 32
  %139 = trunc i64 %138 to i32
  store i32 %139, ptr %17, align 4, !tbaa !12
  %140 = load i64, ptr %16, align 8, !tbaa !9
  %141 = and i64 %140, 4294967295
  %142 = trunc i64 %141 to i32
  %143 = load i64, ptr %19, align 8, !tbaa !9
  %144 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %143) #5
  store i32 %142, ptr %144, align 4, !tbaa !12
  br label %123, !llvm.loop !16

145:                                              ; preds = %123
  %146 = load i32, ptr %17, align 4, !tbaa !12
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %148, label %149

148:                                              ; preds = %145
  store i1 false, ptr %4, align 1
  store i32 1, ptr %27, align 4
  br label %262

149:                                              ; preds = %145
  %150 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef 0) #5
  %151 = load i32, ptr %150, align 4, !tbaa !12
  %152 = load i32, ptr %21, align 4, !tbaa !12
  %153 = and i32 %151, %152
  %154 = icmp ne i32 %153, 0
  br i1 %154, label %155, label %156

155:                                              ; preds = %149
  store i1 false, ptr %4, align 1
  store i32 1, ptr %27, align 4
  br label %262

156:                                              ; preds = %149
  br label %157

157:                                              ; preds = %156
  %158 = load i64, ptr %18, align 8, !tbaa !9
  %159 = add i64 %158, 1
  store i64 %159, ptr %18, align 8, !tbaa !9
  br label %89, !llvm.loop !17

160:                                              ; preds = %89
  store i64 0, ptr %19, align 8, !tbaa !9
  %161 = load i8, ptr %20, align 1, !tbaa !11
  %162 = zext i8 %161 to i32
  switch i32 %162, label %188 [
    i32 3, label %163
    i32 2, label %171
    i32 1, label %179
  ]

163:                                              ; preds = %160
  %164 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef 0) #5
  %165 = load i32, ptr %164, align 4, !tbaa !12
  %166 = and i32 %165, 16711680
  %167 = lshr i32 %166, 16
  %168 = trunc i32 %167 to i8
  %169 = load ptr, ptr %10, align 8, !tbaa !5
  %170 = getelementptr inbounds i8, ptr %169, i32 1
  store ptr %170, ptr %10, align 8, !tbaa !5
  store i8 %168, ptr %169, align 1, !tbaa !11
  br label %171

171:                                              ; preds = %163, %160
  %172 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef 0) #5
  %173 = load i32, ptr %172, align 4, !tbaa !12
  %174 = and i32 %173, 65280
  %175 = lshr i32 %174, 8
  %176 = trunc i32 %175 to i8
  %177 = load ptr, ptr %10, align 8, !tbaa !5
  %178 = getelementptr inbounds i8, ptr %177, i32 1
  store ptr %178, ptr %10, align 8, !tbaa !5
  store i8 %176, ptr %177, align 1, !tbaa !11
  br label %179

179:                                              ; preds = %171, %160
  %180 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef 0) #5
  %181 = load i32, ptr %180, align 4, !tbaa !12
  %182 = and i32 %181, 255
  %183 = trunc i32 %182 to i8
  %184 = load ptr, ptr %10, align 8, !tbaa !5
  %185 = getelementptr inbounds i8, ptr %184, i32 1
  store ptr %185, ptr %10, align 8, !tbaa !5
  store i8 %183, ptr %184, align 1, !tbaa !11
  %186 = load i64, ptr %19, align 8, !tbaa !9
  %187 = add i64 %186, 1
  store i64 %187, ptr %19, align 8, !tbaa !9
  br label %188

188:                                              ; preds = %179, %160
  br label %189

189:                                              ; preds = %188
  br label %190

190:                                              ; preds = %227, %189
  %191 = load i64, ptr %19, align 8, !tbaa !9
  %192 = load i64, ptr %11, align 8, !tbaa !9
  %193 = icmp ult i64 %191, %192
  br i1 %193, label %194, label %230

194:                                              ; preds = %190
  %195 = load i64, ptr %19, align 8, !tbaa !9
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %195) #5
  %197 = load i32, ptr %196, align 4, !tbaa !12
  %198 = lshr i32 %197, 24
  %199 = and i32 %198, 255
  %200 = trunc i32 %199 to i8
  %201 = load ptr, ptr %10, align 8, !tbaa !5
  %202 = getelementptr inbounds i8, ptr %201, i32 1
  store ptr %202, ptr %10, align 8, !tbaa !5
  store i8 %200, ptr %201, align 1, !tbaa !11
  %203 = load i64, ptr %19, align 8, !tbaa !9
  %204 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %203) #5
  %205 = load i32, ptr %204, align 4, !tbaa !12
  %206 = lshr i32 %205, 16
  %207 = and i32 %206, 255
  %208 = trunc i32 %207 to i8
  %209 = load ptr, ptr %10, align 8, !tbaa !5
  %210 = getelementptr inbounds i8, ptr %209, i32 1
  store ptr %210, ptr %10, align 8, !tbaa !5
  store i8 %208, ptr %209, align 1, !tbaa !11
  %211 = load i64, ptr %19, align 8, !tbaa !9
  %212 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %211) #5
  %213 = load i32, ptr %212, align 4, !tbaa !12
  %214 = lshr i32 %213, 8
  %215 = and i32 %214, 255
  %216 = trunc i32 %215 to i8
  %217 = load ptr, ptr %10, align 8, !tbaa !5
  %218 = getelementptr inbounds i8, ptr %217, i32 1
  store ptr %218, ptr %10, align 8, !tbaa !5
  store i8 %216, ptr %217, align 1, !tbaa !11
  %219 = load i64, ptr %19, align 8, !tbaa !9
  %220 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %219) #5
  %221 = load i32, ptr %220, align 4, !tbaa !12
  %222 = lshr i32 %221, 0
  %223 = and i32 %222, 255
  %224 = trunc i32 %223 to i8
  %225 = load ptr, ptr %10, align 8, !tbaa !5
  %226 = getelementptr inbounds i8, ptr %225, i32 1
  store ptr %226, ptr %10, align 8, !tbaa !5
  store i8 %224, ptr %225, align 1, !tbaa !11
  br label %227

227:                                              ; preds = %194
  %228 = load i64, ptr %19, align 8, !tbaa !9
  %229 = add i64 %228, 1
  store i64 %229, ptr %19, align 8, !tbaa !9
  br label %190, !llvm.loop !18

230:                                              ; preds = %190
  %231 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %231, ptr %10, align 8, !tbaa !5
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %232

232:                                              ; preds = %253, %230
  %233 = load i64, ptr %18, align 8, !tbaa !9
  %234 = load i64, ptr %8, align 8, !tbaa !9
  %235 = icmp ult i64 %233, %234
  br i1 %235, label %236, label %256

236:                                              ; preds = %232
  %237 = load ptr, ptr %10, align 8, !tbaa !5
  %238 = load i64, ptr %18, align 8, !tbaa !9
  %239 = getelementptr inbounds i8, ptr %237, i64 %238
  %240 = load i8, ptr %239, align 1, !tbaa !11
  %241 = icmp ne i8 %240, 0
  br i1 %241, label %242, label %249

242:                                              ; preds = %236
  %243 = load i32, ptr %22, align 4, !tbaa !12
  %244 = zext i32 %243 to i64
  %245 = load i64, ptr %18, align 8, !tbaa !9
  %246 = icmp ugt i64 %244, %245
  br i1 %246, label %247, label %248

247:                                              ; preds = %242
  store i1 false, ptr %4, align 1
  store i32 1, ptr %27, align 4
  br label %262

248:                                              ; preds = %242
  br label %256

249:                                              ; preds = %236
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  %251 = load i64, ptr %250, align 8, !tbaa !9
  %252 = add i64 %251, -1
  store i64 %252, ptr %250, align 8, !tbaa !9
  br label %253

253:                                              ; preds = %249
  %254 = load i64, ptr %18, align 8, !tbaa !9
  %255 = add i64 %254, 1
  store i64 %255, ptr %18, align 8, !tbaa !9
  br label %232, !llvm.loop !19

256:                                              ; preds = %248, %232
  %257 = load i32, ptr %22, align 4, !tbaa !12
  %258 = zext i32 %257 to i64
  %259 = load ptr, ptr %6, align 8, !tbaa !5
  %260 = load i64, ptr %259, align 8, !tbaa !9
  %261 = add i64 %260, %258
  store i64 %261, ptr %259, align 8, !tbaa !9
  store i1 true, ptr %4, align 1
  store i32 1, ptr %27, align 4
  br label %262

262:                                              ; preds = %256, %247, %155, %148, %112, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %263 = load i1, ptr %4, align 1
  ret i1 %263

264:                                              ; preds = %84, %80
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %265

265:                                              ; preds = %264
  %266 = load ptr, ptr %14, align 8
  %267 = load i32, ptr %15, align 4
  %268 = insertvalue { ptr, i32 } poison, ptr %266, 0
  %269 = insertvalue { ptr, i32 } %268, i32 %267, 1
  resume { ptr, i32 } %269
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 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: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEEiEvT_S7_RKT0_(ptr, ptr, ptr noundef nonnull align 4 dereferenceable(4)) #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIaLm128EEixEm(ptr noundef nonnull align 1 dereferenceable(128), i64 noundef) #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress 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 }
attributes #6 = { nounwind willreturn memory(read) }

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

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


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

%"struct.std::array" = type { [128 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@_ZL13b58digits_map = external hidden constant %"struct.std::array", align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z8b58tobinPhPmPKc(ptr nocapture noundef %0, ptr nocapture noundef %1, ptr nocapture noundef readonly %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca i32, align 4
  %7 = load i64, ptr %1, align 8, !tbaa !5
  %8 = add i64 %7, 3
  %9 = lshr i64 %8, 2
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %9, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %10 unwind label %26

10:                                               ; preds = %3
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  %11 = trunc i64 %7 to i8
  %12 = and i8 %11, 3
  %.not = icmp eq i8 %12, 0
  %13 = shl nuw nsw i8 %12, 3
  %14 = zext nneg i8 %13 to i32
  %15 = shl nsw i32 -1, %14
  %16 = select i1 %.not, i32 0, i32 %15
  %17 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %2) #6
  %18 = call ptr @_ZNSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %19 = call ptr @_ZNSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  store i32 0, ptr %6, align 4, !tbaa !9
  invoke void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEEiEvT_S7_RKT0_(ptr %18, ptr %19, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %20 unwind label %28

20:                                               ; preds = %10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  %.not102 = icmp eq i64 %17, 0
  br i1 %.not102, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %20, %24
  %.07182 = phi i64 [ %25, %24 ], [ 0, %20 ]
  %21 = getelementptr inbounds i8, ptr %2, i64 %.07182
  %22 = load i8, ptr %21, align 1, !tbaa !11
  %23 = icmp eq i8 %22, 49
  br i1 %23, label %24, label %.critedge.loopexit

24:                                               ; preds = %.lr.ph
  %25 = add nuw i64 %.07182, 1
  %exitcond.not = icmp eq i64 %25, %17
  br i1 %exitcond.not, label %.critedge.loopexit, label %.lr.ph, !llvm.loop !12

26:                                               ; preds = %3
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  br label %112

28:                                               ; preds = %10
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  br label %112

.critedge.loopexit:                               ; preds = %24, %.lr.ph
  %.071.lcssa.ph = phi i64 [ %.07182, %.lr.ph ], [ %17, %24 ]
  %30 = and i64 %.071.lcssa.ph, 4294967295
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %20
  %.071.lcssa = phi i64 [ 0, %20 ], [ %.071.lcssa.ph, %.critedge.loopexit ]
  %.065.lcssa = phi i64 [ 0, %20 ], [ %30, %.critedge.loopexit ]
  %31 = icmp ult i64 %.071.lcssa, %17
  br i1 %31, label %.lr.ph94, label %._crit_edge95

.lr.ph94:                                         ; preds = %.critedge
  %.not7788 = icmp ult i64 %8, 4
  br label %34

32:                                               ; preds = %59
  %33 = add nuw i64 %.17293, 1
  %exitcond106.not = icmp eq i64 %33, %17
  br i1 %exitcond106.not, label %._crit_edge95, label %34, !llvm.loop !14

34:                                               ; preds = %.lr.ph94, %32
  %.17293 = phi i64 [ %.071.lcssa, %.lr.ph94 ], [ %33, %32 ]
  %35 = getelementptr inbounds i8, ptr %2, i64 %.17293
  %36 = load i8, ptr %35, align 1, !tbaa !11
  %.not76 = icmp sgt i8 %36, -1
  br i1 %.not76, label %37, label %.loopexit80

37:                                               ; preds = %34
  %38 = zext nneg i8 %36 to i64
  %39 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIaLm128EEixEm(ptr noundef nonnull align 1 dereferenceable(128) @_ZL13b58digits_map, i64 noundef %38) #5
  %40 = load i8, ptr %39, align 1, !tbaa !11
  %41 = icmp eq i8 %40, -1
  br i1 %41, label %.loopexit80, label %42

42:                                               ; preds = %37
  %43 = load i8, ptr %35, align 1, !tbaa !11
  %44 = zext i8 %43 to i64
  %45 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIaLm128EEixEm(ptr noundef nonnull align 1 dereferenceable(128) @_ZL13b58digits_map, i64 noundef %44) #5
  %46 = load i8, ptr %45, align 1, !tbaa !11
  %47 = sext i8 %46 to i32
  br i1 %.not7788, label %._crit_edge, label %.lr.ph91

.lr.ph91:                                         ; preds = %42, %.lr.ph91
  %.06790 = phi i32 [ %56, %.lr.ph91 ], [ %47, %42 ]
  %.06889 = phi i64 [ %48, %.lr.ph91 ], [ %9, %42 ]
  %48 = add nsw i64 %.06889, -1
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %48) #5
  %50 = load i32, ptr %49, align 4, !tbaa !9
  %51 = zext i32 %50 to i64
  %52 = mul nuw nsw i64 %51, 58
  %53 = zext i32 %.06790 to i64
  %54 = add nuw nsw i64 %52, %53
  %55 = lshr i64 %54, 32
  %56 = trunc nuw nsw i64 %55 to i32
  %57 = trunc i64 %54 to i32
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %48) #5
  store i32 %57, ptr %58, align 4, !tbaa !9
  %.not77 = icmp eq i64 %48, 0
  br i1 %.not77, label %._crit_edge, label %.lr.ph91, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph91, %42
  %.067.lcssa = phi i32 [ %47, %42 ], [ %56, %.lr.ph91 ]
  %.not78 = icmp eq i32 %.067.lcssa, 0
  br i1 %.not78, label %59, label %.loopexit80

59:                                               ; preds = %._crit_edge
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #5
  %61 = load i32, ptr %60, align 4, !tbaa !9
  %62 = and i32 %61, %16
  %.not79 = icmp eq i32 %62, 0
  br i1 %.not79, label %32, label %.loopexit80

._crit_edge95:                                    ; preds = %32, %.critedge
  switch i8 %12, label %default.unreachable [
    i8 3, label %63
    i8 2, label %69
    i8 1, label %75
    i8 0, label %80
  ]

63:                                               ; preds = %._crit_edge95
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #5
  %65 = load i32, ptr %64, align 4, !tbaa !9
  %66 = lshr i32 %65, 16
  %67 = trunc i32 %66 to i8
  %68 = getelementptr inbounds i8, ptr %0, i64 1
  store i8 %67, ptr %0, align 1, !tbaa !11
  br label %69

69:                                               ; preds = %._crit_edge95, %63
  %.063 = phi ptr [ %0, %._crit_edge95 ], [ %68, %63 ]
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #5
  %71 = load i32, ptr %70, align 4, !tbaa !9
  %72 = lshr i32 %71, 8
  %73 = trunc i32 %72 to i8
  %74 = getelementptr inbounds i8, ptr %.063, i64 1
  store i8 %73, ptr %.063, align 1, !tbaa !11
  br label %75

75:                                               ; preds = %._crit_edge95, %69
  %.1 = phi ptr [ %0, %._crit_edge95 ], [ %74, %69 ]
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #5
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = trunc i32 %77 to i8
  %79 = getelementptr inbounds i8, ptr %.1, i64 1
  store i8 %78, ptr %.1, align 1, !tbaa !11
  br label %80

default.unreachable:                              ; preds = %._crit_edge95
  unreachable

80:                                               ; preds = %._crit_edge95, %75
  %.169 = phi i64 [ 0, %._crit_edge95 ], [ 1, %75 ]
  %.2 = phi ptr [ %0, %._crit_edge95 ], [ %79, %75 ]
  %81 = icmp ult i64 %.169, %9
  br i1 %81, label %.lr.ph99, label %.preheader

.preheader:                                       ; preds = %.lr.ph99, %80
  %.not103 = icmp eq i64 %7, 0
  br i1 %.not103, label %.loopexit, label %.lr.ph101

.lr.ph99:                                         ; preds = %80, %.lr.ph99
  %.397 = phi ptr [ %100, %.lr.ph99 ], [ %.2, %80 ]
  %.27096 = phi i64 [ %101, %.lr.ph99 ], [ %.169, %80 ]
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.27096) #5
  %83 = load i32, ptr %82, align 4, !tbaa !9
  %84 = lshr i32 %83, 24
  %85 = trunc nuw i32 %84 to i8
  %86 = getelementptr inbounds i8, ptr %.397, i64 1
  store i8 %85, ptr %.397, align 1, !tbaa !11
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.27096) #5
  %88 = load i32, ptr %87, align 4, !tbaa !9
  %89 = lshr i32 %88, 16
  %90 = trunc i32 %89 to i8
  %91 = getelementptr inbounds i8, ptr %.397, i64 2
  store i8 %90, ptr %86, align 1, !tbaa !11
  %92 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.27096) #5
  %93 = load i32, ptr %92, align 4, !tbaa !9
  %94 = lshr i32 %93, 8
  %95 = trunc i32 %94 to i8
  %96 = getelementptr inbounds i8, ptr %.397, i64 3
  store i8 %95, ptr %91, align 1, !tbaa !11
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.27096) #5
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = trunc i32 %98 to i8
  %100 = getelementptr inbounds i8, ptr %.397, i64 4
  store i8 %99, ptr %96, align 1, !tbaa !11
  %101 = add nuw nsw i64 %.27096, 1
  %exitcond107.not = icmp eq i64 %101, %9
  br i1 %exitcond107.not, label %.preheader, label %.lr.ph99, !llvm.loop !16

.lr.ph101:                                        ; preds = %.preheader, %106
  %.273100 = phi i64 [ %109, %106 ], [ 0, %.preheader ]
  %102 = getelementptr inbounds i8, ptr %0, i64 %.273100
  %103 = load i8, ptr %102, align 1, !tbaa !11
  %.not75 = icmp eq i8 %103, 0
  br i1 %.not75, label %106, label %104

104:                                              ; preds = %.lr.ph101
  %105 = icmp ult i64 %.273100, %.065.lcssa
  br i1 %105, label %.loopexit80, label %.loopexit

106:                                              ; preds = %.lr.ph101
  %107 = load i64, ptr %1, align 8, !tbaa !5
  %108 = add i64 %107, -1
  store i64 %108, ptr %1, align 8, !tbaa !5
  %109 = add nuw i64 %.273100, 1
  %exitcond108.not = icmp eq i64 %109, %7
  br i1 %exitcond108.not, label %.loopexit, label %.lr.ph101, !llvm.loop !17

.loopexit:                                        ; preds = %106, %.preheader, %104
  %110 = load i64, ptr %1, align 8, !tbaa !5
  %111 = add i64 %110, %.065.lcssa
  store i64 %111, ptr %1, align 8, !tbaa !5
  br label %.loopexit80

.loopexit80:                                      ; preds = %59, %._crit_edge, %37, %34, %104, %.loopexit
  %.0 = phi i1 [ true, %.loopexit ], [ false, %104 ], [ false, %34 ], [ false, %37 ], [ false, %._crit_edge ], [ false, %59 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  ret i1 %.0

112:                                              ; preds = %28, %26
  %.pn = phi { ptr, i32 } [ %29, %28 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  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: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 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 nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEEiEvT_S7_RKT0_(ptr, ptr, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIaLm128EEixEm(ptr noundef nonnull align 1 dereferenceable(128), i64 noundef) local_unnamed_addr #2 align 2

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

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

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass