; LLVM IR from HarshCasper/NeoAlgo :: C-Plus-Plus/cp (Ones_and_Zeroes)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z17largestSubsetSizeRSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, i32 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca i8, align 1
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  %24 = trunc i64 %23 to i32
  store i32 %24, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %25 = load i32, ptr %7, align 4, !tbaa !9
  %26 = add nsw i32 %25, 1
  %27 = zext i32 %26 to i64
  %28 = load i32, ptr %5, align 4, !tbaa !9
  %29 = add nsw i32 %28, 1
  %30 = zext i32 %29 to i64
  %31 = load i32, ptr %6, align 4, !tbaa !9
  %32 = add nsw i32 %31, 1
  %33 = zext i32 %32 to i64
  %34 = call ptr @llvm.stacksave.p0()
  store ptr %34, ptr %11, align 8
  %35 = mul nuw i64 %27, %30
  %36 = mul nuw i64 %35, %33
  %37 = alloca i32, i64 %36, align 16
  store i64 %27, ptr %12, align 8
  store i64 %30, ptr %13, align 8
  store i64 %33, ptr %14, align 8
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %38

38:                                               ; preds = %73, %3
  %39 = load i32, ptr %8, align 4, !tbaa !9
  %40 = load i32, ptr %7, align 4, !tbaa !9
  %41 = icmp sle i32 %39, %40
  br i1 %41, label %42, label %76

42:                                               ; preds = %38
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %69, %42
  %44 = load i32, ptr %9, align 4, !tbaa !9
  %45 = load i32, ptr %5, align 4, !tbaa !9
  %46 = icmp sle i32 %44, %45
  br i1 %46, label %47, label %72

47:                                               ; preds = %43
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %65, %47
  %49 = load i32, ptr %10, align 4, !tbaa !9
  %50 = load i32, ptr %6, align 4, !tbaa !9
  %51 = icmp sle i32 %49, %50
  br i1 %51, label %52, label %68

52:                                               ; preds = %48
  %53 = load i32, ptr %8, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = mul nuw i64 %30, %33
  %56 = mul nsw i64 %54, %55
  %57 = getelementptr inbounds i32, ptr %37, i64 %56
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = mul nsw i64 %59, %33
  %61 = getelementptr inbounds i32, ptr %57, i64 %60
  %62 = load i32, ptr %10, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds i32, ptr %61, i64 %63
  store i32 0, ptr %64, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %52
  %66 = load i32, ptr %10, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %10, align 4, !tbaa !9
  br label %48, !llvm.loop !11

68:                                               ; preds = %48
  br label %69

69:                                               ; preds = %68
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %9, align 4, !tbaa !9
  br label %43, !llvm.loop !13

72:                                               ; preds = %43
  br label %73

73:                                               ; preds = %72
  %74 = load i32, ptr %8, align 4, !tbaa !9
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %8, align 4, !tbaa !9
  br label %38, !llvm.loop !14

76:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %77

77:                                               ; preds = %224, %76
  %78 = load i32, ptr %8, align 4, !tbaa !9
  %79 = load i32, ptr %7, align 4, !tbaa !9
  %80 = icmp sle i32 %78, %79
  br i1 %80, label %81, label %227

81:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = load i32, ptr %8, align 4, !tbaa !9
  %84 = sub nsw i32 %83, 1
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %85) #6
  %87 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %86) #6
  %88 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %87, ptr %88, align 8
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = load i32, ptr %8, align 4, !tbaa !9
  %91 = sub nsw i32 %90, 1
  %92 = sext i32 %91 to i64
  %93 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %92) #6
  %94 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %93) #6
  %95 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %94, ptr %95, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  store i8 49, ptr %19, align 1, !tbaa !15
  %96 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8
  %98 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  %99 = load ptr, ptr %98, align 8
  %100 = call noundef i64 @_ZSt5countIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEcENSt15iterator_traitsIT_E15difference_typeESB_SB_RKT0_(ptr %97, ptr %99, ptr noundef nonnull align 1 dereferenceable(1) %19)
  %101 = trunc i64 %100 to i32
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  store i32 %101, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = load i32, ptr %8, align 4, !tbaa !9
  %104 = sub nsw i32 %103, 1
  %105 = sext i32 %104 to i64
  %106 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %102, i64 noundef %105) #6
  %107 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %106) #6
  %108 = load i32, ptr %16, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = sub i64 %107, %109
  %111 = trunc i64 %110 to i32
  store i32 %111, ptr %20, align 4, !tbaa !9
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %220, %81
  %113 = load i32, ptr %9, align 4, !tbaa !9
  %114 = load i32, ptr %5, align 4, !tbaa !9
  %115 = icmp sle i32 %113, %114
  br i1 %115, label %116, label %223

116:                                              ; preds = %112
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %216, %116
  %118 = load i32, ptr %10, align 4, !tbaa !9
  %119 = load i32, ptr %6, align 4, !tbaa !9
  %120 = icmp sle i32 %118, %119
  br i1 %120, label %121, label %219

121:                                              ; preds = %117
  %122 = load i32, ptr %8, align 4, !tbaa !9
  %123 = sub nsw i32 %122, 1
  %124 = sext i32 %123 to i64
  %125 = mul nuw i64 %30, %33
  %126 = mul nsw i64 %124, %125
  %127 = getelementptr inbounds i32, ptr %37, i64 %126
  %128 = load i32, ptr %9, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  %130 = mul nsw i64 %129, %33
  %131 = getelementptr inbounds i32, ptr %127, i64 %130
  %132 = load i32, ptr %10, align 4, !tbaa !9
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds i32, ptr %131, i64 %133
  %135 = load i32, ptr %134, align 4, !tbaa !9
  %136 = load i32, ptr %8, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = mul nuw i64 %30, %33
  %139 = mul nsw i64 %137, %138
  %140 = getelementptr inbounds i32, ptr %37, i64 %139
  %141 = load i32, ptr %9, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  %143 = mul nsw i64 %142, %33
  %144 = getelementptr inbounds i32, ptr %140, i64 %143
  %145 = load i32, ptr %10, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds i32, ptr %144, i64 %146
  store i32 %135, ptr %147, align 4, !tbaa !9
  %148 = load i32, ptr %9, align 4, !tbaa !9
  %149 = load i32, ptr %20, align 4, !tbaa !9
  %150 = icmp sge i32 %148, %149
  br i1 %150, label %151, label %201

151:                                              ; preds = %121
  %152 = load i32, ptr %10, align 4, !tbaa !9
  %153 = load i32, ptr %16, align 4, !tbaa !9
  %154 = icmp sge i32 %152, %153
  br i1 %154, label %155, label %201

155:                                              ; preds = %151
  %156 = load i32, ptr %8, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = mul nuw i64 %30, %33
  %159 = mul nsw i64 %157, %158
  %160 = getelementptr inbounds i32, ptr %37, i64 %159
  %161 = load i32, ptr %9, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = mul nsw i64 %162, %33
  %164 = getelementptr inbounds i32, ptr %160, i64 %163
  %165 = load i32, ptr %10, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds i32, ptr %164, i64 %166
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %168 = load i32, ptr %8, align 4, !tbaa !9
  %169 = sub nsw i32 %168, 1
  %170 = sext i32 %169 to i64
  %171 = mul nuw i64 %30, %33
  %172 = mul nsw i64 %170, %171
  %173 = getelementptr inbounds i32, ptr %37, i64 %172
  %174 = load i32, ptr %9, align 4, !tbaa !9
  %175 = load i32, ptr %20, align 4, !tbaa !9
  %176 = sub nsw i32 %174, %175
  %177 = sext i32 %176 to i64
  %178 = mul nsw i64 %177, %33
  %179 = getelementptr inbounds i32, ptr %173, i64 %178
  %180 = load i32, ptr %10, align 4, !tbaa !9
  %181 = load i32, ptr %16, align 4, !tbaa !9
  %182 = sub nsw i32 %180, %181
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds i32, ptr %179, i64 %183
  %185 = load i32, ptr %184, align 4, !tbaa !9
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %21, align 4, !tbaa !9
  %187 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %167, ptr noundef nonnull align 4 dereferenceable(4) %21)
  %188 = load i32, ptr %187, align 4, !tbaa !9
  %189 = load i32, ptr %8, align 4, !tbaa !9
  %190 = sext i32 %189 to i64
  %191 = mul nuw i64 %30, %33
  %192 = mul nsw i64 %190, %191
  %193 = getelementptr inbounds i32, ptr %37, i64 %192
  %194 = load i32, ptr %9, align 4, !tbaa !9
  %195 = sext i32 %194 to i64
  %196 = mul nsw i64 %195, %33
  %197 = getelementptr inbounds i32, ptr %193, i64 %196
  %198 = load i32, ptr %10, align 4, !tbaa !9
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds i32, ptr %197, i64 %199
  store i32 %188, ptr %200, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %201

201:                                              ; preds = %155, %151, %121
  %202 = load i32, ptr %8, align 4, !tbaa !9
  %203 = sext i32 %202 to i64
  %204 = mul nuw i64 %30, %33
  %205 = mul nsw i64 %203, %204
  %206 = getelementptr inbounds i32, ptr %37, i64 %205
  %207 = load i32, ptr %9, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = mul nsw i64 %208, %33
  %210 = getelementptr inbounds i32, ptr %206, i64 %209
  %211 = load i32, ptr %10, align 4, !tbaa !9
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds i32, ptr %210, i64 %212
  %214 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %213)
  %215 = load i32, ptr %214, align 4, !tbaa !9
  store i32 %215, ptr %15, align 4, !tbaa !9
  br label %216

216:                                              ; preds = %201
  %217 = load i32, ptr %10, align 4, !tbaa !9
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %10, align 4, !tbaa !9
  br label %117, !llvm.loop !16

219:                                              ; preds = %117
  br label %220

220:                                              ; preds = %219
  %221 = load i32, ptr %9, align 4, !tbaa !9
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %9, align 4, !tbaa !9
  br label %112, !llvm.loop !17

223:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %224

224:                                              ; preds = %223
  %225 = load i32, ptr %8, align 4, !tbaa !9
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %8, align 4, !tbaa !9
  br label %77, !llvm.loop !18

227:                                              ; preds = %77
  %228 = load i32, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  %229 = load ptr, ptr %11, align 8
  call void @llvm.stackrestore.p0(ptr %229)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret i32 %228
}

; 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 noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; 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 noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

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 = { nocallback nofree nosync nounwind willreturn }
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 = { 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 #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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}


; 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"

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z17largestSubsetSizeRSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = alloca i32, align 4
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  %7 = tail call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %8 = trunc i64 %7 to i32
  %9 = add i64 %7, 1
  %10 = and i64 %9, 4294967295
  %11 = add i32 %1, 1
  %12 = zext i32 %11 to i64
  %13 = add i32 %2, 1
  %14 = zext i32 %13 to i64
  %15 = mul nuw i64 %14, %12
  %16 = mul i64 %15, %10
  %17 = alloca i32, i64 %16, align 16
  %.not78 = icmp slt i32 %8, 0
  br i1 %.not78, label %._crit_edge80.thread, label %.preheader72.lr.ph

._crit_edge80.thread:                             ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  br label %._crit_edge93

.preheader72.lr.ph:                               ; preds = %3
  %18 = or i32 %1, %2
  %or.cond.not = icmp sgt i32 %18, -1
  br i1 %or.cond.not, label %.preheader72.preheader, label %._crit_edge80

.preheader72.preheader:                           ; preds = %.preheader72.lr.ph
  %19 = add nuw nsw i64 %7, 1
  %20 = and i64 %19, 4294967295
  %21 = mul i64 %15, %20
  %22 = shl i64 %21, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 16 %17, i8 0, i64 %22, i1 false), !tbaa !5
  br label %._crit_edge80

._crit_edge80:                                    ; preds = %.preheader72.lr.ph, %.preheader72.preheader
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  %.not6490 = icmp eq i32 %8, 0
  br i1 %.not6490, label %._crit_edge93, label %.lr.ph

.lr.ph:                                           ; preds = %._crit_edge80
  %.not6587 = icmp slt i32 %1, 0
  %.not6684 = icmp slt i32 %2, 0
  %23 = add nuw nsw i64 %7, 1
  %wide.trip.count113 = and i64 %23, 4294967295
  br label %24

24:                                               ; preds = %.lr.ph, %._crit_edge89
  %indvars.iv110 = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next111, %._crit_edge89 ]
  %25 = add nsw i64 %indvars.iv110, -1
  %26 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %25) #6
  %27 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  %28 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %25) #6
  %29 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  store i8 49, ptr %5, align 1, !tbaa !9
  %30 = call noundef i64 @_ZSt5countIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEcENSt15iterator_traitsIT_E15difference_typeESB_SB_RKT0_(ptr %27, ptr %29, ptr noundef nonnull align 1 dereferenceable(1) %5)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  %31 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %25) #6
  %32 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  %33 = sub i64 %32, %30
  %34 = trunc i64 %33 to i32
  br i1 %.not6587, label %._crit_edge89, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %24
  %35 = mul nsw i64 %15, %25
  %36 = getelementptr inbounds i32, ptr %17, i64 %35
  %37 = mul nuw nsw i64 %15, %indvars.iv110
  %38 = getelementptr inbounds i32, ptr %17, i64 %37
  br i1 %.not6684, label %._crit_edge89, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %sext = shl i64 %30, 32
  %39 = ashr exact i64 %sext, 32
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge86
  %.15888 = phi i32 [ %66, %._crit_edge86 ], [ 0, %.preheader.preheader ]
  %40 = zext nneg i32 %.15888 to i64
  %41 = mul nuw nsw i64 %40, %14
  %42 = getelementptr inbounds i32, ptr %36, i64 %41
  %43 = getelementptr inbounds i32, ptr %38, i64 %41
  %.not67 = icmp slt i32 %.15888, %34
  %44 = sub nsw i32 %.15888, %34
  %45 = sext i32 %44 to i64
  %46 = mul nsw i64 %45, %14
  %47 = getelementptr inbounds i32, ptr %36, i64 %46
  br i1 %.not67, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.preheader, %.lr.ph.split.us
  %indvars.iv105 = phi i64 [ %indvars.iv.next106, %.lr.ph.split.us ], [ 0, %.preheader ]
  %48 = getelementptr inbounds i32, ptr %42, i64 %indvars.iv105
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = getelementptr inbounds i32, ptr %43, i64 %indvars.iv105
  store i32 %49, ptr %50, align 4, !tbaa !5
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %50)
  %52 = load i32, ptr %51, align 4, !tbaa !5
  store i32 %52, ptr %4, align 4, !tbaa !5
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %exitcond109.not = icmp eq i64 %indvars.iv.next106, %14
  br i1 %exitcond109.not, label %._crit_edge86, label %.lr.ph.split.us, !llvm.loop !10

.lr.ph.split:                                     ; preds = %.preheader, %63
  %indvars.iv = phi i64 [ %indvars.iv.next, %63 ], [ 0, %.preheader ]
  %53 = getelementptr inbounds i32, ptr %42, i64 %indvars.iv
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = getelementptr inbounds i32, ptr %43, i64 %indvars.iv
  store i32 %54, ptr %55, align 4, !tbaa !5
  %.not68 = icmp slt i64 %indvars.iv, %39
  br i1 %.not68, label %63, label %56

56:                                               ; preds = %.lr.ph.split
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %57 = sub nsw i64 %indvars.iv, %39
  %58 = getelementptr inbounds i32, ptr %47, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %6, align 4, !tbaa !5
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %55, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %62 = load i32, ptr %61, align 4, !tbaa !5
  store i32 %62, ptr %55, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  br label %63

63:                                               ; preds = %56, %.lr.ph.split
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %55)
  %65 = load i32, ptr %64, align 4, !tbaa !5
  store i32 %65, ptr %4, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %14
  br i1 %exitcond.not, label %._crit_edge86, label %.lr.ph.split, !llvm.loop !10

._crit_edge86:                                    ; preds = %63, %.lr.ph.split.us
  %66 = add i32 %.15888, 1
  %.not65 = icmp sgt i32 %66, %1
  br i1 %.not65, label %._crit_edge89, label %.preheader, !llvm.loop !12

._crit_edge89:                                    ; preds = %._crit_edge86, %.preheader.lr.ph, %24
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %exitcond114.not = icmp eq i64 %indvars.iv.next111, %wide.trip.count113
  br i1 %exitcond114.not, label %._crit_edge93.loopexit, label %24, !llvm.loop !13

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

._crit_edge93:                                    ; preds = %._crit_edge80.thread, %._crit_edge93.loopexit, %._crit_edge80
  %67 = phi i32 [ %.pre, %._crit_edge93.loopexit ], [ 0, %._crit_edge80 ], [ 0, %._crit_edge80.thread ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  ret i32 %67
}

; 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 noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt5countIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEcENSt15iterator_traitsIT_E15difference_typeESB_SB_RKT0_(ptr, ptr, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

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

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

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

; 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 noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass