; LLVM IR from tangjz/acm-icpc :: codeforces/complete/1551B1.ll (Z5solvev)

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

@_ZZ5solvevE3buf = external hidden global [200009 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

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

7:                                                ; preds = %25, %0
  %8 = load i32, ptr %2, align 4, !tbaa !5
  %9 = sext i32 %8 to i64
  %10 = getelementptr inbounds [200009 x i8], ptr @_ZZ5solvevE3buf, i64 0, i64 %9
  %11 = load i8, ptr %10, align 1, !tbaa !9
  %12 = icmp ne i8 %11, 0
  br i1 %12, label %14, label %13

13:                                               ; preds = %7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %28

14:                                               ; preds = %7
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [200009 x i8], ptr @_ZZ5solvevE3buf, i64 0, i64 %16
  %18 = load i8, ptr %17, align 1, !tbaa !9
  %19 = sext i8 %18 to i32
  %20 = sub nsw i32 %19, 97
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [26 x i32], ptr %1, i64 0, i64 %21
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr %22, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %14
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr %2, align 4, !tbaa !5
  br label %7, !llvm.loop !10

28:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %41, %28
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = icmp slt i32 %30, 26
  br i1 %31, label %33, label %32

32:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %44

33:                                               ; preds = %29
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [26 x i32], ptr %1, i64 0, i64 %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 2, ptr %5, align 4, !tbaa !5
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = add nsw i32 %39, %38
  store i32 %40, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %41

41:                                               ; preds = %33
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %4, align 4, !tbaa !5
  br label %29, !llvm.loop !12

44:                                               ; preds = %32
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = ashr i32 %45, 1
  store i32 %46, ptr %3, align 4, !tbaa !5
  %47 = load i32, ptr %3, align 4, !tbaa !5
  %48 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %47)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 104, ptr %1) #5
  ret void
}

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

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

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

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 = { "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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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}


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

@_ZZ5solvevE3buf = external hidden global [200009 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 {
  %1 = alloca [26 x i32], align 16
  %2 = alloca i32, align 4
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @_ZZ5solvevE3buf)
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %1) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(104) %1, i8 0, i64 104, i1 false)
  %4 = load i8, ptr @_ZZ5solvevE3buf, align 16, !tbaa !5
  %.not12 = icmp eq i8 %4, 0
  br i1 %.not12, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %.lr.ph, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %5 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %6 = load i32, ptr %5, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %7 = getelementptr inbounds i8, ptr %1, i64 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %8 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %9 = load i32, ptr %8, align 4, !tbaa !8
  %10 = add nsw i32 %9, %6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %11 = getelementptr inbounds i8, ptr %1, i64 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %12 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %13 = load i32, ptr %12, align 4, !tbaa !8
  %14 = add nsw i32 %13, %10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %15 = getelementptr inbounds i8, ptr %1, i64 12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %16 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %17 = load i32, ptr %16, align 4, !tbaa !8
  %18 = add nsw i32 %17, %14
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %19 = getelementptr inbounds i8, ptr %1, i64 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %21 = load i32, ptr %20, align 4, !tbaa !8
  %22 = add nsw i32 %21, %18
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %23 = getelementptr inbounds i8, ptr %1, i64 20
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %25 = load i32, ptr %24, align 4, !tbaa !8
  %26 = add nsw i32 %25, %22
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %27 = getelementptr inbounds i8, ptr %1, i64 24
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %29 = load i32, ptr %28, align 4, !tbaa !8
  %30 = add nsw i32 %29, %26
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %31 = getelementptr inbounds i8, ptr %1, i64 28
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %31, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %33 = load i32, ptr %32, align 4, !tbaa !8
  %34 = add nsw i32 %33, %30
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %35 = getelementptr inbounds i8, ptr %1, i64 32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %37 = load i32, ptr %36, align 4, !tbaa !8
  %38 = add nsw i32 %37, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %39 = getelementptr inbounds i8, ptr %1, i64 36
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %39, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %41 = load i32, ptr %40, align 4, !tbaa !8
  %42 = add nsw i32 %41, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %43 = getelementptr inbounds i8, ptr %1, i64 40
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %45 = load i32, ptr %44, align 4, !tbaa !8
  %46 = add nsw i32 %45, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %47 = getelementptr inbounds i8, ptr %1, i64 44
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %47, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %49 = load i32, ptr %48, align 4, !tbaa !8
  %50 = add nsw i32 %49, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %51 = getelementptr inbounds i8, ptr %1, i64 48
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %51, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %53 = load i32, ptr %52, align 4, !tbaa !8
  %54 = add nsw i32 %53, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %55 = getelementptr inbounds i8, ptr %1, i64 52
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %55, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %57 = load i32, ptr %56, align 4, !tbaa !8
  %58 = add nsw i32 %57, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %59 = getelementptr inbounds i8, ptr %1, i64 56
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %59, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %61 = load i32, ptr %60, align 4, !tbaa !8
  %62 = add nsw i32 %61, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %63 = getelementptr inbounds i8, ptr %1, i64 60
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %63, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %65 = load i32, ptr %64, align 4, !tbaa !8
  %66 = add nsw i32 %65, %62
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %67 = getelementptr inbounds i8, ptr %1, i64 64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %67, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %69 = load i32, ptr %68, align 4, !tbaa !8
  %70 = add nsw i32 %69, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %71 = getelementptr inbounds i8, ptr %1, i64 68
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %71, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %73 = load i32, ptr %72, align 4, !tbaa !8
  %74 = add nsw i32 %73, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %75 = getelementptr inbounds i8, ptr %1, i64 72
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %75, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %77 = load i32, ptr %76, align 4, !tbaa !8
  %78 = add nsw i32 %77, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %79 = getelementptr inbounds i8, ptr %1, i64 76
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %79, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %81 = load i32, ptr %80, align 4, !tbaa !8
  %82 = add nsw i32 %81, %78
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %83 = getelementptr inbounds i8, ptr %1, i64 80
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %83, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %85 = load i32, ptr %84, align 4, !tbaa !8
  %86 = add nsw i32 %85, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %87 = getelementptr inbounds i8, ptr %1, i64 84
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %87, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %89 = load i32, ptr %88, align 4, !tbaa !8
  %90 = add nsw i32 %89, %86
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %91 = getelementptr inbounds i8, ptr %1, i64 88
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %92 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %91, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %93 = load i32, ptr %92, align 4, !tbaa !8
  %94 = add nsw i32 %93, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %95 = getelementptr inbounds i8, ptr %1, i64 92
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %95, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %97 = load i32, ptr %96, align 4, !tbaa !8
  %98 = add nsw i32 %97, %94
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %99 = getelementptr inbounds i8, ptr %1, i64 96
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %99, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %101 = load i32, ptr %100, align 4, !tbaa !8
  %102 = add nsw i32 %101, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %103 = getelementptr inbounds i8, ptr %1, i64 100
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 2, ptr %2, align 4, !tbaa !8
  %104 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %103, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %105 = load i32, ptr %104, align 4, !tbaa !8
  %106 = add nsw i32 %105, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %107 = ashr i32 %106, 1
  %108 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %107)
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %1) #5
  ret void

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %109 = phi i8 [ %116, %.lr.ph ], [ %4, %0 ]
  %110 = sext i8 %109 to i64
  %111 = add nsw i64 %110, -97
  %112 = getelementptr inbounds [26 x i32], ptr %1, i64 0, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !8
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %112, align 4, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %115 = getelementptr inbounds [200009 x i8], ptr @_ZZ5solvevE3buf, i64 0, i64 %indvars.iv.next
  %116 = load i8, ptr %115, align 1, !tbaa !5
  %.not = icmp eq i8 %116, 0
  br i1 %.not, label %.preheader, label %.lr.ph, !llvm.loop !10
}

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

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

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

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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


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