; LLVM IR from andreimaximov/algorithms :: hacker-rank/algorithms/dynamic-programming/square-subsequences (main)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3addii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3subii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_Z6commonRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca [200 x [200 x i32]], align 16
  %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 i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 160000, ptr %5) #3
  call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 160000, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %15 = load i32, ptr %4, align 4, !tbaa !9
  %16 = add nsw i32 %15, 1
  store i32 %16, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %17) #3
  %19 = load i32, ptr %6, align 4, !tbaa !9
  %20 = sext i32 %19 to i64
  %21 = sub i64 %18, %20
  %22 = trunc i64 %21 to i32
  store i32 %22, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %23

23:                                               ; preds = %33, %2
  %24 = load i32, ptr %8, align 4, !tbaa !9
  %25 = load i32, ptr %6, align 4, !tbaa !9
  %26 = icmp sle i32 %24, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %36

28:                                               ; preds = %23
  %29 = load i32, ptr %8, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [200 x [200 x i32]], ptr %5, i64 0, i64 %30
  %32 = getelementptr inbounds [200 x i32], ptr %31, i64 0, i64 0
  store i32 1, ptr %32, align 16, !tbaa !9
  br label %33

33:                                               ; preds = %28
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %8, align 4, !tbaa !9
  br label %23, !llvm.loop !11

36:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %47, %36
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = load i32, ptr %7, align 4, !tbaa !9
  %40 = icmp sle i32 %38, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %50

42:                                               ; preds = %37
  %43 = getelementptr inbounds [200 x [200 x i32]], ptr %5, i64 0, i64 0
  %44 = load i32, ptr %9, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [200 x i32], ptr %43, i64 0, i64 %45
  store i32 1, ptr %46, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %42
  %48 = load i32, ptr %9, align 4, !tbaa !9
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %9, align 4, !tbaa !9
  br label %37, !llvm.loop !13

50:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 1, ptr %10, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %152, %50
  %52 = load i32, ptr %10, align 4, !tbaa !9
  %53 = load i32, ptr %6, align 4, !tbaa !9
  %54 = icmp sle i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %155

56:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %148, %56
  %58 = load i32, ptr %12, align 4, !tbaa !9
  %59 = load i32, ptr %7, align 4, !tbaa !9
  %60 = icmp sle i32 %58, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %57
  store i32 11, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %151

62:                                               ; preds = %57
  %63 = load i32, ptr %10, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [200 x [200 x i32]], ptr %5, i64 0, i64 %64
  %66 = load i32, ptr %12, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [200 x i32], ptr %65, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !9
  %70 = load i32, ptr %10, align 4, !tbaa !9
  %71 = sub nsw i32 %70, 1
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [200 x [200 x i32]], ptr %5, i64 0, i64 %72
  %74 = load i32, ptr %12, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [200 x i32], ptr %73, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = call noundef i32 @_Z3addii(i32 noundef %69, i32 noundef %77)
  %79 = load i32, ptr %10, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [200 x [200 x i32]], ptr %5, i64 0, i64 %80
  %82 = load i32, ptr %12, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [200 x i32], ptr %81, i64 0, i64 %83
  store i32 %78, ptr %84, align 4, !tbaa !9
  %85 = load i32, ptr %10, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [200 x [200 x i32]], ptr %5, i64 0, i64 %86
  %88 = load i32, ptr %12, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [200 x i32], ptr %87, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !9
  %92 = load i32, ptr %10, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [200 x [200 x i32]], ptr %5, i64 0, i64 %93
  %95 = load i32, ptr %12, align 4, !tbaa !9
  %96 = sub nsw i32 %95, 1
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [200 x i32], ptr %94, i64 0, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !9
  %100 = call noundef i32 @_Z3addii(i32 noundef %91, i32 noundef %99)
  %101 = load i32, ptr %10, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [200 x [200 x i32]], ptr %5, i64 0, i64 %102
  %104 = load i32, ptr %12, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [200 x i32], ptr %103, i64 0, i64 %105
  store i32 %100, ptr %106, align 4, !tbaa !9
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = load i32, ptr %10, align 4, !tbaa !9
  %109 = sub nsw i32 %108, 1
  %110 = sext i32 %109 to i64
  %111 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %107, i64 noundef %110) #3
  %112 = load i8, ptr %111, align 1, !tbaa !14
  %113 = sext i8 %112 to i32
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = load i32, ptr %4, align 4, !tbaa !9
  %116 = load i32, ptr %12, align 4, !tbaa !9
  %117 = add nsw i32 %115, %116
  %118 = sext i32 %117 to i64
  %119 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %114, i64 noundef %118) #3
  %120 = load i8, ptr %119, align 1, !tbaa !14
  %121 = sext i8 %120 to i32
  %122 = icmp ne i32 %113, %121
  br i1 %122, label %123, label %147

123:                                              ; preds = %62
  %124 = load i32, ptr %10, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [200 x [200 x i32]], ptr %5, i64 0, i64 %125
  %127 = load i32, ptr %12, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [200 x i32], ptr %126, i64 0, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !9
  %131 = load i32, ptr %10, align 4, !tbaa !9
  %132 = sub nsw i32 %131, 1
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [200 x [200 x i32]], ptr %5, i64 0, i64 %133
  %135 = load i32, ptr %12, align 4, !tbaa !9
  %136 = sub nsw i32 %135, 1
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [200 x i32], ptr %134, i64 0, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !9
  %140 = call noundef i32 @_Z3subii(i32 noundef %130, i32 noundef %139)
  %141 = load i32, ptr %10, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [200 x [200 x i32]], ptr %5, i64 0, i64 %142
  %144 = load i32, ptr %12, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [200 x i32], ptr %143, i64 0, i64 %145
  store i32 %140, ptr %146, align 4, !tbaa !9
  br label %147

147:                                              ; preds = %123, %62
  br label %148

148:                                              ; preds = %147
  %149 = load i32, ptr %12, align 4, !tbaa !9
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %12, align 4, !tbaa !9
  br label %57, !llvm.loop !15

151:                                              ; preds = %61
  br label %152

152:                                              ; preds = %151
  %153 = load i32, ptr %10, align 4, !tbaa !9
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %10, align 4, !tbaa !9
  br label %51, !llvm.loop !16

155:                                              ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %156

156:                                              ; preds = %189, %155
  %157 = load i32, ptr %14, align 4, !tbaa !9
  %158 = load i32, ptr %7, align 4, !tbaa !9
  %159 = icmp slt i32 %157, %158
  br i1 %159, label %161, label %160

160:                                              ; preds = %156
  store i32 14, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  br label %192

161:                                              ; preds = %156
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = load i32, ptr %4, align 4, !tbaa !9
  %164 = sext i32 %163 to i64
  %165 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %162, i64 noundef %164) #3
  %166 = load i8, ptr %165, align 1, !tbaa !14
  %167 = sext i8 %166 to i32
  %168 = load ptr, ptr %3, align 8, !tbaa !5
  %169 = load i32, ptr %4, align 4, !tbaa !9
  %170 = load i32, ptr %14, align 4, !tbaa !9
  %171 = add nsw i32 %169, %170
  %172 = add nsw i32 %171, 1
  %173 = sext i32 %172 to i64
  %174 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %168, i64 noundef %173) #3
  %175 = load i8, ptr %174, align 1, !tbaa !14
  %176 = sext i8 %175 to i32
  %177 = icmp eq i32 %167, %176
  br i1 %177, label %178, label %188

178:                                              ; preds = %161
  %179 = load i32, ptr %13, align 4, !tbaa !9
  %180 = load i32, ptr %4, align 4, !tbaa !9
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [200 x [200 x i32]], ptr %5, i64 0, i64 %181
  %183 = load i32, ptr %14, align 4, !tbaa !9
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [200 x i32], ptr %182, i64 0, i64 %184
  %186 = load i32, ptr %185, align 4, !tbaa !9
  %187 = call noundef i32 @_Z3addii(i32 noundef %179, i32 noundef %186)
  store i32 %187, ptr %13, align 4, !tbaa !9
  br label %188

188:                                              ; preds = %178, %161
  br label %189

189:                                              ; preds = %188
  %190 = load i32, ptr %14, align 4, !tbaa !9
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %14, align 4, !tbaa !9
  br label %156, !llvm.loop !17

192:                                              ; preds = %160
  %193 = load i32, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 160000, ptr %5) #3
  ret i32 %193
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #0 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 nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #0 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 = !{!7, !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !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 nounwind uwtable
declare dso_local noundef i32 @_Z3addii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3subii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_Z6commonRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = alloca [200 x [200 x i32]], align 16
  call void @llvm.lifetime.start.p0(i64 160000, ptr nonnull %3) #3
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(160000) %3, i8 0, i64 160000, i1 false)
  %.neg = xor i32 %1, -1
  %4 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #3
  %5 = trunc i64 %4 to i32
  %6 = add i32 %.neg, %5
  %.not65 = icmp slt i32 %1, -1
  br i1 %.not65, label %.preheader64, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %2
  %7 = add i32 %1, 2
  %wide.trip.count = zext i32 %7 to i64
  %8 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %wide.trip.count, 3
  %9 = icmp ult i64 %8, 3
  br i1 %9, label %.preheader64.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 4294967292
  br label %.lr.ph

.preheader64.loopexit.unr-lcssa:                  ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader64, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader64.loopexit.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %.preheader64.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.preheader64.loopexit.unr-lcssa ]
  %10 = getelementptr inbounds [200 x [200 x i32]], ptr %3, i64 0, i64 %indvars.iv.epil
  store i32 1, ptr %10, align 16, !tbaa !5
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader64, label %.lr.ph.epil, !llvm.loop !9

.preheader64:                                     ; preds = %.preheader64.loopexit.unr-lcssa, %.lr.ph.epil, %2
  %.not5867 = icmp slt i32 %6, 0
  br i1 %.not5867, label %.preheader63, label %.lr.ph69.preheader

.lr.ph69.preheader:                               ; preds = %.preheader64
  %11 = sub i32 %5, %1
  %wide.trip.count84 = zext i32 %11 to i64
  %min.iters.check = icmp ult i32 %11, 8
  br i1 %min.iters.check, label %.lr.ph69.preheader101, label %vector.ph

.lr.ph69.preheader101:                            ; preds = %middle.block, %.lr.ph69.preheader
  %indvars.iv81.ph = phi i64 [ 0, %.lr.ph69.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph69

vector.ph:                                        ; preds = %.lr.ph69.preheader
  %n.vec = and i64 %wide.trip.count84, 4294967288
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %12 = getelementptr inbounds [200 x i32], ptr %3, i64 0, i64 %index
  %13 = getelementptr inbounds i8, ptr %12, i64 16
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %12, align 16, !tbaa !5
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %13, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %14 = icmp eq i64 %index.next, %n.vec
  br i1 %14, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count84
  br i1 %cmp.n, label %.preheader63, label %.lr.ph69.preheader101

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %15 = getelementptr inbounds [200 x [200 x i32]], ptr %3, i64 0, i64 %indvars.iv
  store i32 1, ptr %15, align 16, !tbaa !5
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %16 = getelementptr inbounds [200 x [200 x i32]], ptr %3, i64 0, i64 %indvars.iv.next
  store i32 1, ptr %16, align 16, !tbaa !5
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %17 = getelementptr inbounds [200 x [200 x i32]], ptr %3, i64 0, i64 %indvars.iv.next.1
  store i32 1, ptr %17, align 16, !tbaa !5
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %18 = getelementptr inbounds [200 x [200 x i32]], ptr %3, i64 0, i64 %indvars.iv.next.2
  store i32 1, ptr %18, align 16, !tbaa !5
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader64.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !15

.preheader63:                                     ; preds = %.lr.ph69, %middle.block, %.preheader64
  %.not5973 = icmp slt i32 %1, 0
  br i1 %.not5973, label %.preheader, label %.preheader62.lr.ph

.preheader62.lr.ph:                               ; preds = %.preheader63
  %.not6070 = icmp slt i32 %6, 1
  br i1 %.not6070, label %._crit_edge78, label %.preheader62.preheader

.preheader62.preheader:                           ; preds = %.preheader62.lr.ph
  %19 = zext nneg i32 %1 to i64
  %20 = sub i32 %5, %1
  %21 = add nuw i32 %1, 2
  %wide.trip.count94 = zext i32 %21 to i64
  %wide.trip.count89 = zext i32 %20 to i64
  br label %.preheader62

.lr.ph69:                                         ; preds = %.lr.ph69.preheader101, %.lr.ph69
  %indvars.iv81 = phi i64 [ %indvars.iv.next82, %.lr.ph69 ], [ %indvars.iv81.ph, %.lr.ph69.preheader101 ]
  %22 = getelementptr inbounds [200 x i32], ptr %3, i64 0, i64 %indvars.iv81
  store i32 1, ptr %22, align 4, !tbaa !5
  %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1
  %exitcond85.not = icmp eq i64 %indvars.iv.next82, %wide.trip.count84
  br i1 %exitcond85.not, label %.preheader63, label %.lr.ph69, !llvm.loop !16

.preheader62:                                     ; preds = %.preheader62.preheader, %._crit_edge
  %indvars.iv91 = phi i64 [ 1, %.preheader62.preheader ], [ %indvars.iv.next92, %._crit_edge ]
  %23 = add nsw i64 %indvars.iv91, -1
  br label %27

.preheader:                                       ; preds = %._crit_edge, %.preheader63
  %24 = icmp sgt i32 %6, 0
  br i1 %24, label %.lr.ph77, label %._crit_edge78

.lr.ph77:                                         ; preds = %.preheader
  %25 = sext i32 %1 to i64
  %26 = add i32 %1, 1
  %wide.trip.count99 = zext nneg i32 %6 to i64
  br label %47

._crit_edge:                                      ; preds = %46
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %exitcond95 = icmp eq i64 %indvars.iv.next92, %wide.trip.count94
  br i1 %exitcond95, label %.preheader, label %.preheader62, !llvm.loop !17

27:                                               ; preds = %.preheader62, %46
  %indvars.iv86 = phi i64 [ 1, %.preheader62 ], [ %indvars.iv.next87, %46 ]
  %28 = getelementptr inbounds [200 x [200 x i32]], ptr %3, i64 0, i64 %indvars.iv91, i64 %indvars.iv86
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = getelementptr inbounds [200 x [200 x i32]], ptr %3, i64 0, i64 %23, i64 %indvars.iv86
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = tail call noundef i32 @_Z3addii(i32 noundef %29, i32 noundef %31)
  %33 = add nsw i64 %indvars.iv86, -1
  %34 = getelementptr inbounds [200 x [200 x i32]], ptr %3, i64 0, i64 %indvars.iv91, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = tail call noundef i32 @_Z3addii(i32 noundef %32, i32 noundef %35)
  store i32 %36, ptr %28, align 4, !tbaa !5
  %37 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %23) #3
  %38 = load i8, ptr %37, align 1, !tbaa !18
  %39 = add nuw nsw i64 %indvars.iv86, %19
  %40 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %39) #3
  %41 = load i8, ptr %40, align 1, !tbaa !18
  %.not61 = icmp eq i8 %38, %41
  br i1 %.not61, label %46, label %42

42:                                               ; preds = %27
  %43 = getelementptr inbounds [200 x [200 x i32]], ptr %3, i64 0, i64 %23, i64 %33
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = tail call noundef i32 @_Z3subii(i32 noundef %36, i32 noundef %44)
  store i32 %45, ptr %28, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %27, %42
  %indvars.iv.next87 = add nuw nsw i64 %indvars.iv86, 1
  %exitcond90.not = icmp eq i64 %indvars.iv.next87, %wide.trip.count89
  br i1 %exitcond90.not, label %._crit_edge, label %27, !llvm.loop !19

._crit_edge78:                                    ; preds = %60, %.preheader62.lr.ph, %.preheader
  %.051.lcssa = phi i32 [ 0, %.preheader ], [ 0, %.preheader62.lr.ph ], [ %.1, %60 ]
  call void @llvm.lifetime.end.p0(i64 160000, ptr nonnull %3) #3
  ret i32 %.051.lcssa

47:                                               ; preds = %.lr.ph77, %60
  %indvars.iv96 = phi i64 [ 0, %.lr.ph77 ], [ %indvars.iv.next97, %60 ]
  %.05175 = phi i32 [ 0, %.lr.ph77 ], [ %.1, %60 ]
  %48 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %25) #3
  %49 = load i8, ptr %48, align 1, !tbaa !18
  %50 = trunc nuw nsw i64 %indvars.iv96 to i32
  %51 = add i32 %26, %50
  %52 = sext i32 %51 to i64
  %53 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %52) #3
  %54 = load i8, ptr %53, align 1, !tbaa !18
  %55 = icmp eq i8 %49, %54
  br i1 %55, label %56, label %60

56:                                               ; preds = %47
  %57 = getelementptr inbounds [200 x [200 x i32]], ptr %3, i64 0, i64 %25, i64 %indvars.iv96
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = tail call noundef i32 @_Z3addii(i32 noundef %.05175, i32 noundef %58)
  br label %60

60:                                               ; preds = %47, %56
  %.1 = phi i32 [ %59, %56 ], [ %.05175, %47 ]
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %exitcond100.not = icmp eq i64 %indvars.iv.next97, %wide.trip.count99
  br i1 %exitcond100.not, label %._crit_edge78, label %47, !llvm.loop !20
}

; 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 nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 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 nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.unroll.disable"}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12, !14, !13}
!17 = distinct !{!17, !12}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass