; LLVM IR from Shah-Shishir/Codeforces-Solutions :: 1241B. Strings Equalization (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"

@s = external dso_local global [105 x i8], align 16
@t = external dso_local global [105 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca [26 x i8], align 16
  %7 = alloca [26 x i8], align 16
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  br label %9

9:                                                ; preds = %70, %0
  %10 = load i32, ptr %2, align 4, !tbaa !5
  %11 = add nsw i32 %10, -1
  store i32 %11, ptr %2, align 4, !tbaa !5
  %12 = icmp ne i32 %10, 0
  br i1 %12, label %13, label %72

13:                                               ; preds = %9
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @s, ptr noundef @t)
  call void @llvm.lifetime.start.p0(i64 26, ptr %6) #5
  call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 26, i1 false)
  call void @llvm.lifetime.start.p0(i64 26, ptr %7) #5
  call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 26, i1 false)
  %15 = call i64 @strlen(ptr noundef @s) #6
  %16 = trunc i64 %15 to i32
  store i32 %16, ptr %4, align 4, !tbaa !5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %40, %13
  %18 = load i32, ptr %3, align 4, !tbaa !5
  %19 = load i32, ptr %4, align 4, !tbaa !5
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %21, label %43

21:                                               ; preds = %17
  %22 = load i32, ptr %3, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [105 x i8], ptr @s, i64 0, i64 %23
  %25 = load i8, ptr %24, align 1, !tbaa !9
  %26 = sext i8 %25 to i32
  %27 = sub nsw i32 %26, 97
  store i32 %27, ptr %5, align 4, !tbaa !5
  %28 = load i32, ptr %5, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [26 x i8], ptr %6, i64 0, i64 %29
  store i8 1, ptr %30, align 1, !tbaa !10
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [105 x i8], ptr @t, i64 0, i64 %32
  %34 = load i8, ptr %33, align 1, !tbaa !9
  %35 = sext i8 %34 to i32
  %36 = sub nsw i32 %35, 97
  store i32 %36, ptr %5, align 4, !tbaa !5
  %37 = load i32, ptr %5, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [26 x i8], ptr %7, i64 0, i64 %38
  store i8 1, ptr %39, align 1, !tbaa !10
  br label %40

40:                                               ; preds = %21
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %3, align 4, !tbaa !5
  br label %17, !llvm.loop !12

43:                                               ; preds = %17
  store i32 0, ptr %5, align 4, !tbaa !5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %62, %43
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = icmp slt i32 %45, 26
  br i1 %46, label %47, label %65

47:                                               ; preds = %44
  %48 = load i32, ptr %3, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [26 x i8], ptr %6, i64 0, i64 %49
  %51 = load i8, ptr %50, align 1, !tbaa !10, !range !14, !noundef !15
  %52 = trunc i8 %51 to i1
  br i1 %52, label %53, label %61

53:                                               ; preds = %47
  %54 = load i32, ptr %3, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [26 x i8], ptr %7, i64 0, i64 %55
  %57 = load i8, ptr %56, align 1, !tbaa !10, !range !14, !noundef !15
  %58 = trunc i8 %57 to i1
  br i1 %58, label %59, label %61

59:                                               ; preds = %53
  store i32 1, ptr %5, align 4, !tbaa !5
  %60 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %65

61:                                               ; preds = %53, %47
  br label %62

62:                                               ; preds = %61
  %63 = load i32, ptr %3, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %3, align 4, !tbaa !5
  br label %44, !llvm.loop !16

65:                                               ; preds = %59, %44
  %66 = load i32, ptr %5, align 4, !tbaa !5
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %70, label %68

68:                                               ; preds = %65
  %69 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %70

70:                                               ; preds = %68, %65
  %71 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  call void @llvm.lifetime.end.p0(i64 26, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 26, ptr %6) #5
  br label %9, !llvm.loop !17

72:                                               ; preds = %9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  ret i32 0
}

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

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #4

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

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

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


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

@s = external dso_local global [105 x i8], align 16
@t = external dso_local global [105 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca [26 x i8], align 16
  %3 = alloca [26 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %5 = load i32, ptr %1, align 4, !tbaa !5
  %6 = add nsw i32 %5, -1
  store i32 %6, ptr %1, align 4, !tbaa !5
  %.not16 = icmp eq i32 %5, 0
  br i1 %.not16, label %._crit_edge, label %.lr.ph17.preheader

.lr.ph17.preheader:                               ; preds = %0
  %7 = getelementptr inbounds i8, ptr %2, i64 1
  %8 = getelementptr inbounds i8, ptr %3, i64 1
  %9 = getelementptr inbounds i8, ptr %2, i64 2
  %10 = getelementptr inbounds i8, ptr %3, i64 2
  %11 = getelementptr inbounds i8, ptr %2, i64 3
  %12 = getelementptr inbounds i8, ptr %3, i64 3
  %13 = getelementptr inbounds i8, ptr %2, i64 4
  %14 = getelementptr inbounds i8, ptr %3, i64 4
  %15 = getelementptr inbounds i8, ptr %2, i64 5
  %16 = getelementptr inbounds i8, ptr %3, i64 5
  %17 = getelementptr inbounds i8, ptr %2, i64 6
  %18 = getelementptr inbounds i8, ptr %3, i64 6
  %19 = getelementptr inbounds i8, ptr %2, i64 7
  %20 = getelementptr inbounds i8, ptr %3, i64 7
  %21 = getelementptr inbounds i8, ptr %2, i64 8
  %22 = getelementptr inbounds i8, ptr %3, i64 8
  %23 = getelementptr inbounds i8, ptr %2, i64 9
  %24 = getelementptr inbounds i8, ptr %3, i64 9
  %25 = getelementptr inbounds i8, ptr %2, i64 10
  %26 = getelementptr inbounds i8, ptr %3, i64 10
  %27 = getelementptr inbounds i8, ptr %2, i64 11
  %28 = getelementptr inbounds i8, ptr %3, i64 11
  %29 = getelementptr inbounds i8, ptr %2, i64 12
  %30 = getelementptr inbounds i8, ptr %3, i64 12
  %31 = getelementptr inbounds i8, ptr %2, i64 13
  %32 = getelementptr inbounds i8, ptr %3, i64 13
  %33 = getelementptr inbounds i8, ptr %2, i64 14
  %34 = getelementptr inbounds i8, ptr %3, i64 14
  %35 = getelementptr inbounds i8, ptr %2, i64 15
  %36 = getelementptr inbounds i8, ptr %3, i64 15
  %37 = getelementptr inbounds i8, ptr %2, i64 16
  %38 = getelementptr inbounds i8, ptr %3, i64 16
  %39 = getelementptr inbounds i8, ptr %2, i64 17
  %40 = getelementptr inbounds i8, ptr %3, i64 17
  %41 = getelementptr inbounds i8, ptr %2, i64 18
  %42 = getelementptr inbounds i8, ptr %3, i64 18
  %43 = getelementptr inbounds i8, ptr %2, i64 19
  %44 = getelementptr inbounds i8, ptr %3, i64 19
  %45 = getelementptr inbounds i8, ptr %2, i64 20
  %46 = getelementptr inbounds i8, ptr %3, i64 20
  %47 = getelementptr inbounds i8, ptr %2, i64 21
  %48 = getelementptr inbounds i8, ptr %3, i64 21
  %49 = getelementptr inbounds i8, ptr %2, i64 22
  %50 = getelementptr inbounds i8, ptr %3, i64 22
  %51 = getelementptr inbounds i8, ptr %2, i64 23
  %52 = getelementptr inbounds i8, ptr %3, i64 23
  %53 = getelementptr inbounds i8, ptr %2, i64 24
  %54 = getelementptr inbounds i8, ptr %3, i64 24
  %55 = getelementptr inbounds i8, ptr %2, i64 25
  %56 = getelementptr inbounds i8, ptr %3, i64 25
  br label %.lr.ph17

.lr.ph17:                                         ; preds = %.lr.ph17.preheader, %245
  %57 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @s, ptr noundef nonnull @t)
  call void @llvm.lifetime.start.p0(i64 26, ptr nonnull %2) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(26) %2, i8 0, i64 26, i1 false)
  call void @llvm.lifetime.start.p0(i64 26, ptr nonnull %3) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(26) %3, i8 0, i64 26, i1 false)
  %58 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) @s) #6
  %59 = trunc i64 %58 to i32
  %60 = icmp sgt i32 %59, 0
  br i1 %60, label %.lr.ph.preheader, label %.preheader.thread

.lr.ph.preheader:                                 ; preds = %.lr.ph17
  %wide.trip.count = and i64 %58, 2147483647
  %xtraiter = and i64 %58, 1
  %61 = icmp eq i64 %wide.trip.count, 1
  br i1 %61, label %.preheader.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = sub nsw i64 %wide.trip.count, %xtraiter
  br label %.lr.ph

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

.lr.ph.epil:                                      ; preds = %.preheader.unr-lcssa
  %62 = getelementptr inbounds [105 x i8], ptr @s, i64 0, i64 %indvars.iv.unr
  %63 = load i8, ptr %62, align 1, !tbaa !9
  %64 = sext i8 %63 to i64
  %65 = add nsw i64 %64, -97
  %66 = getelementptr inbounds [26 x i8], ptr %2, i64 0, i64 %65
  store i8 1, ptr %66, align 1, !tbaa !10
  %67 = getelementptr inbounds [105 x i8], ptr @t, i64 0, i64 %indvars.iv.unr
  %68 = load i8, ptr %67, align 1, !tbaa !9
  %69 = sext i8 %68 to i64
  %70 = add nsw i64 %69, -97
  %71 = getelementptr inbounds [26 x i8], ptr %3, i64 0, i64 %70
  store i8 1, ptr %71, align 1, !tbaa !10
  br label %.preheader

.preheader:                                       ; preds = %.preheader.unr-lcssa, %.lr.ph.epil
  %.pre = load i8, ptr %2, align 16, !tbaa !10, !range !12
  %72 = trunc nuw i8 %.pre to i1
  br i1 %72, label %93, label %.preheader.thread

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %73 = getelementptr inbounds [105 x i8], ptr @s, i64 0, i64 %indvars.iv
  %74 = load i8, ptr %73, align 2, !tbaa !9
  %75 = sext i8 %74 to i64
  %76 = add nsw i64 %75, -97
  %77 = getelementptr inbounds [26 x i8], ptr %2, i64 0, i64 %76
  store i8 1, ptr %77, align 1, !tbaa !10
  %78 = getelementptr inbounds [105 x i8], ptr @t, i64 0, i64 %indvars.iv
  %79 = load i8, ptr %78, align 2, !tbaa !9
  %80 = sext i8 %79 to i64
  %81 = add nsw i64 %80, -97
  %82 = getelementptr inbounds [26 x i8], ptr %3, i64 0, i64 %81
  store i8 1, ptr %82, align 1, !tbaa !10
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %83 = getelementptr inbounds [105 x i8], ptr @s, i64 0, i64 %indvars.iv.next
  %84 = load i8, ptr %83, align 1, !tbaa !9
  %85 = sext i8 %84 to i64
  %86 = add nsw i64 %85, -97
  %87 = getelementptr inbounds [26 x i8], ptr %2, i64 0, i64 %86
  store i8 1, ptr %87, align 1, !tbaa !10
  %88 = getelementptr inbounds [105 x i8], ptr @t, i64 0, i64 %indvars.iv.next
  %89 = load i8, ptr %88, align 1, !tbaa !9
  %90 = sext i8 %89 to i64
  %91 = add nsw i64 %90, -97
  %92 = getelementptr inbounds [26 x i8], ptr %3, i64 0, i64 %91
  store i8 1, ptr %92, align 1, !tbaa !10
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader.unr-lcssa, label %.lr.ph, !llvm.loop !13

93:                                               ; preds = %.preheader
  %94 = load i8, ptr %3, align 16, !tbaa !10, !range !12, !noundef !15
  %95 = trunc nuw i8 %94 to i1
  br i1 %95, label %245, label %.preheader.thread

.preheader.thread:                                ; preds = %.lr.ph17, %.preheader, %93
  %96 = load i8, ptr %7, align 1, !tbaa !10, !range !12, !noundef !15
  %97 = trunc nuw i8 %96 to i1
  br i1 %97, label %98, label %101

98:                                               ; preds = %.preheader.thread
  %99 = load i8, ptr %8, align 1, !tbaa !10, !range !12, !noundef !15
  %100 = trunc nuw i8 %99 to i1
  br i1 %100, label %245, label %101

101:                                              ; preds = %98, %.preheader.thread
  %102 = load i8, ptr %9, align 2, !tbaa !10, !range !12, !noundef !15
  %103 = trunc nuw i8 %102 to i1
  br i1 %103, label %104, label %107

104:                                              ; preds = %101
  %105 = load i8, ptr %10, align 2, !tbaa !10, !range !12, !noundef !15
  %106 = trunc nuw i8 %105 to i1
  br i1 %106, label %245, label %107

107:                                              ; preds = %104, %101
  %108 = load i8, ptr %11, align 1, !tbaa !10, !range !12, !noundef !15
  %109 = trunc nuw i8 %108 to i1
  br i1 %109, label %110, label %113

110:                                              ; preds = %107
  %111 = load i8, ptr %12, align 1, !tbaa !10, !range !12, !noundef !15
  %112 = trunc nuw i8 %111 to i1
  br i1 %112, label %245, label %113

113:                                              ; preds = %110, %107
  %114 = load i8, ptr %13, align 4, !tbaa !10, !range !12, !noundef !15
  %115 = trunc nuw i8 %114 to i1
  br i1 %115, label %116, label %119

116:                                              ; preds = %113
  %117 = load i8, ptr %14, align 4, !tbaa !10, !range !12, !noundef !15
  %118 = trunc nuw i8 %117 to i1
  br i1 %118, label %245, label %119

119:                                              ; preds = %116, %113
  %120 = load i8, ptr %15, align 1, !tbaa !10, !range !12, !noundef !15
  %121 = trunc nuw i8 %120 to i1
  br i1 %121, label %122, label %125

122:                                              ; preds = %119
  %123 = load i8, ptr %16, align 1, !tbaa !10, !range !12, !noundef !15
  %124 = trunc nuw i8 %123 to i1
  br i1 %124, label %245, label %125

125:                                              ; preds = %122, %119
  %126 = load i8, ptr %17, align 2, !tbaa !10, !range !12, !noundef !15
  %127 = trunc nuw i8 %126 to i1
  br i1 %127, label %128, label %131

128:                                              ; preds = %125
  %129 = load i8, ptr %18, align 2, !tbaa !10, !range !12, !noundef !15
  %130 = trunc nuw i8 %129 to i1
  br i1 %130, label %245, label %131

131:                                              ; preds = %128, %125
  %132 = load i8, ptr %19, align 1, !tbaa !10, !range !12, !noundef !15
  %133 = trunc nuw i8 %132 to i1
  br i1 %133, label %134, label %137

134:                                              ; preds = %131
  %135 = load i8, ptr %20, align 1, !tbaa !10, !range !12, !noundef !15
  %136 = trunc nuw i8 %135 to i1
  br i1 %136, label %245, label %137

137:                                              ; preds = %134, %131
  %138 = load i8, ptr %21, align 8, !tbaa !10, !range !12, !noundef !15
  %139 = trunc nuw i8 %138 to i1
  br i1 %139, label %140, label %143

140:                                              ; preds = %137
  %141 = load i8, ptr %22, align 8, !tbaa !10, !range !12, !noundef !15
  %142 = trunc nuw i8 %141 to i1
  br i1 %142, label %245, label %143

143:                                              ; preds = %140, %137
  %144 = load i8, ptr %23, align 1, !tbaa !10, !range !12, !noundef !15
  %145 = trunc nuw i8 %144 to i1
  br i1 %145, label %146, label %149

146:                                              ; preds = %143
  %147 = load i8, ptr %24, align 1, !tbaa !10, !range !12, !noundef !15
  %148 = trunc nuw i8 %147 to i1
  br i1 %148, label %245, label %149

149:                                              ; preds = %146, %143
  %150 = load i8, ptr %25, align 2, !tbaa !10, !range !12, !noundef !15
  %151 = trunc nuw i8 %150 to i1
  br i1 %151, label %152, label %155

152:                                              ; preds = %149
  %153 = load i8, ptr %26, align 2, !tbaa !10, !range !12, !noundef !15
  %154 = trunc nuw i8 %153 to i1
  br i1 %154, label %245, label %155

155:                                              ; preds = %152, %149
  %156 = load i8, ptr %27, align 1, !tbaa !10, !range !12, !noundef !15
  %157 = trunc nuw i8 %156 to i1
  br i1 %157, label %158, label %161

158:                                              ; preds = %155
  %159 = load i8, ptr %28, align 1, !tbaa !10, !range !12, !noundef !15
  %160 = trunc nuw i8 %159 to i1
  br i1 %160, label %245, label %161

161:                                              ; preds = %158, %155
  %162 = load i8, ptr %29, align 4, !tbaa !10, !range !12, !noundef !15
  %163 = trunc nuw i8 %162 to i1
  br i1 %163, label %164, label %167

164:                                              ; preds = %161
  %165 = load i8, ptr %30, align 4, !tbaa !10, !range !12, !noundef !15
  %166 = trunc nuw i8 %165 to i1
  br i1 %166, label %245, label %167

167:                                              ; preds = %164, %161
  %168 = load i8, ptr %31, align 1, !tbaa !10, !range !12, !noundef !15
  %169 = trunc nuw i8 %168 to i1
  br i1 %169, label %170, label %173

170:                                              ; preds = %167
  %171 = load i8, ptr %32, align 1, !tbaa !10, !range !12, !noundef !15
  %172 = trunc nuw i8 %171 to i1
  br i1 %172, label %245, label %173

173:                                              ; preds = %170, %167
  %174 = load i8, ptr %33, align 2, !tbaa !10, !range !12, !noundef !15
  %175 = trunc nuw i8 %174 to i1
  br i1 %175, label %176, label %179

176:                                              ; preds = %173
  %177 = load i8, ptr %34, align 2, !tbaa !10, !range !12, !noundef !15
  %178 = trunc nuw i8 %177 to i1
  br i1 %178, label %245, label %179

179:                                              ; preds = %176, %173
  %180 = load i8, ptr %35, align 1, !tbaa !10, !range !12, !noundef !15
  %181 = trunc nuw i8 %180 to i1
  br i1 %181, label %182, label %185

182:                                              ; preds = %179
  %183 = load i8, ptr %36, align 1, !tbaa !10, !range !12, !noundef !15
  %184 = trunc nuw i8 %183 to i1
  br i1 %184, label %245, label %185

185:                                              ; preds = %182, %179
  %186 = load i8, ptr %37, align 16, !tbaa !10, !range !12, !noundef !15
  %187 = trunc nuw i8 %186 to i1
  br i1 %187, label %188, label %191

188:                                              ; preds = %185
  %189 = load i8, ptr %38, align 16, !tbaa !10, !range !12, !noundef !15
  %190 = trunc nuw i8 %189 to i1
  br i1 %190, label %245, label %191

191:                                              ; preds = %188, %185
  %192 = load i8, ptr %39, align 1, !tbaa !10, !range !12, !noundef !15
  %193 = trunc nuw i8 %192 to i1
  br i1 %193, label %194, label %197

194:                                              ; preds = %191
  %195 = load i8, ptr %40, align 1, !tbaa !10, !range !12, !noundef !15
  %196 = trunc nuw i8 %195 to i1
  br i1 %196, label %245, label %197

197:                                              ; preds = %194, %191
  %198 = load i8, ptr %41, align 2, !tbaa !10, !range !12, !noundef !15
  %199 = trunc nuw i8 %198 to i1
  br i1 %199, label %200, label %203

200:                                              ; preds = %197
  %201 = load i8, ptr %42, align 2, !tbaa !10, !range !12, !noundef !15
  %202 = trunc nuw i8 %201 to i1
  br i1 %202, label %245, label %203

203:                                              ; preds = %200, %197
  %204 = load i8, ptr %43, align 1, !tbaa !10, !range !12, !noundef !15
  %205 = trunc nuw i8 %204 to i1
  br i1 %205, label %206, label %209

206:                                              ; preds = %203
  %207 = load i8, ptr %44, align 1, !tbaa !10, !range !12, !noundef !15
  %208 = trunc nuw i8 %207 to i1
  br i1 %208, label %245, label %209

209:                                              ; preds = %206, %203
  %210 = load i8, ptr %45, align 4, !tbaa !10, !range !12, !noundef !15
  %211 = trunc nuw i8 %210 to i1
  br i1 %211, label %212, label %215

212:                                              ; preds = %209
  %213 = load i8, ptr %46, align 4, !tbaa !10, !range !12, !noundef !15
  %214 = trunc nuw i8 %213 to i1
  br i1 %214, label %245, label %215

215:                                              ; preds = %212, %209
  %216 = load i8, ptr %47, align 1, !tbaa !10, !range !12, !noundef !15
  %217 = trunc nuw i8 %216 to i1
  br i1 %217, label %218, label %221

218:                                              ; preds = %215
  %219 = load i8, ptr %48, align 1, !tbaa !10, !range !12, !noundef !15
  %220 = trunc nuw i8 %219 to i1
  br i1 %220, label %245, label %221

221:                                              ; preds = %218, %215
  %222 = load i8, ptr %49, align 2, !tbaa !10, !range !12, !noundef !15
  %223 = trunc nuw i8 %222 to i1
  br i1 %223, label %224, label %227

224:                                              ; preds = %221
  %225 = load i8, ptr %50, align 2, !tbaa !10, !range !12, !noundef !15
  %226 = trunc nuw i8 %225 to i1
  br i1 %226, label %245, label %227

227:                                              ; preds = %224, %221
  %228 = load i8, ptr %51, align 1, !tbaa !10, !range !12, !noundef !15
  %229 = trunc nuw i8 %228 to i1
  br i1 %229, label %230, label %233

230:                                              ; preds = %227
  %231 = load i8, ptr %52, align 1, !tbaa !10, !range !12, !noundef !15
  %232 = trunc nuw i8 %231 to i1
  br i1 %232, label %245, label %233

233:                                              ; preds = %230, %227
  %234 = load i8, ptr %53, align 8, !tbaa !10, !range !12, !noundef !15
  %235 = trunc nuw i8 %234 to i1
  br i1 %235, label %236, label %239

236:                                              ; preds = %233
  %237 = load i8, ptr %54, align 8, !tbaa !10, !range !12, !noundef !15
  %238 = trunc nuw i8 %237 to i1
  br i1 %238, label %245, label %239

239:                                              ; preds = %236, %233
  %240 = load i8, ptr %55, align 1, !tbaa !10, !range !12, !noundef !15
  %241 = trunc nuw i8 %240 to i1
  br i1 %241, label %242, label %.critedge

242:                                              ; preds = %239
  %243 = load i8, ptr %56, align 1, !tbaa !10, !range !12, !noundef !15
  %244 = trunc nuw i8 %243 to i1
  br i1 %244, label %245, label %.critedge

.critedge:                                        ; preds = %242, %239
  br label %245

245:                                              ; preds = %93, %98, %104, %110, %116, %122, %128, %134, %140, %146, %152, %158, %164, %170, %176, %182, %188, %194, %200, %206, %212, %218, %224, %230, %236, %242, %.critedge
  %.str.2.sink = phi ptr [ @.str.3, %.critedge ], [ @.str.2, %242 ], [ @.str.2, %236 ], [ @.str.2, %230 ], [ @.str.2, %224 ], [ @.str.2, %218 ], [ @.str.2, %212 ], [ @.str.2, %206 ], [ @.str.2, %200 ], [ @.str.2, %194 ], [ @.str.2, %188 ], [ @.str.2, %182 ], [ @.str.2, %176 ], [ @.str.2, %170 ], [ @.str.2, %164 ], [ @.str.2, %158 ], [ @.str.2, %152 ], [ @.str.2, %146 ], [ @.str.2, %140 ], [ @.str.2, %134 ], [ @.str.2, %128 ], [ @.str.2, %122 ], [ @.str.2, %116 ], [ @.str.2, %110 ], [ @.str.2, %104 ], [ @.str.2, %98 ], [ @.str.2, %93 ]
  %246 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.sink)
  %247 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  call void @llvm.lifetime.end.p0(i64 26, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 26, ptr nonnull %2) #5
  %248 = load i32, ptr %1, align 4, !tbaa !5
  %249 = add nsw i32 %248, -1
  store i32 %249, ptr %1, align 4, !tbaa !5
  %.not = icmp eq i32 %248, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph17, !llvm.loop !16

._crit_edge:                                      ; preds = %245, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 0
}

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

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

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

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


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