; LLVM IR from tangjz/acm-icpc :: self_training/2015-03-15/E.ll (Z4initv)

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

@trans = external dso_local global [256 x i32], align 16
@mine = external dso_local global [25 x i8], align 16
@msz = external dso_local global [5 x i32], align 16
@mcnt = external dso_local global [15 x i32], align 16
@mx = external dso_local global [5 x i32], align 16
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1

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

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

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

declare i32 @puts(ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4initv() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  call void @llvm.memset.p0.i64(ptr align 16 @msz, i8 0, i64 20, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @mcnt, i8 0, i64 60, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @mx, i8 -1, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %4

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

10:                                               ; preds = %4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  br label %39

11:                                               ; preds = %4
  %12 = load i32, ptr %1, align 4, !tbaa !5
  %13 = sext i32 %12 to i64
  %14 = getelementptr inbounds [25 x i8], ptr @mine, i64 0, i64 %13
  %15 = load i8, ptr %14, align 1, !tbaa !9
  %16 = sext i8 %15 to i32
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [256 x i32], ptr @trans, i64 0, i64 %17
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = icmp eq i32 %19, -1
  br i1 %20, label %21, label %23

21:                                               ; preds = %11
  %22 = call i32 @puts(ptr noundef @.str.1)
  br label %36

23:                                               ; preds = %11
  %24 = load i32, ptr %1, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [25 x i8], ptr @mine, i64 0, i64 %25
  %27 = load i8, ptr %26, align 1, !tbaa !9
  %28 = sext i8 %27 to i32
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [256 x i32], ptr @trans, i64 0, i64 %29
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [15 x i32], ptr @mcnt, i64 0, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %33, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %23, %21
  %37 = load i32, ptr %1, align 4, !tbaa !5
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %1, align 4, !tbaa !5
  br label %4, !llvm.loop !10

39:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %60, %39
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = icmp slt i32 %41, 15
  br i1 %42, label %44, label %43

43:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %63

44:                                               ; preds = %40
  %45 = load i32, ptr %2, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [15 x i32], ptr @mcnt, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [5 x i32], ptr @msz, i64 0, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %50, align 4, !tbaa !5
  %53 = load i32, ptr %2, align 4, !tbaa !5
  %54 = load i32, ptr %2, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [15 x i32], ptr @mcnt, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [5 x i32], ptr @mx, i64 0, i64 %58
  store i32 %53, ptr %59, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %44
  %61 = load i32, ptr %2, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %2, align 4, !tbaa !5
  br label %40, !llvm.loop !12

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

64:                                               ; preds = %99, %63
  %65 = load i32, ptr %3, align 4, !tbaa !5
  %66 = icmp sge i32 %65, 1
  br i1 %66, label %68, label %67

67:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %102

68:                                               ; preds = %64
  %69 = load i32, ptr %3, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [5 x i32], ptr @msz, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = load i32, ptr %3, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [5 x i32], ptr @msz, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = add nsw i32 %77, %73
  store i32 %78, ptr %76, align 4, !tbaa !5
  %79 = load i32, ptr %3, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [5 x i32], ptr @mx, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = load i32, ptr %3, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [5 x i32], ptr @mx, i64 0, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = icmp slt i32 %82, %87
  br i1 %88, label %89, label %98

89:                                               ; preds = %68
  %90 = load i32, ptr %3, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [5 x i32], ptr @mx, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = load i32, ptr %3, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [5 x i32], ptr @mx, i64 0, i64 %96
  store i32 %94, ptr %97, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %89, %68
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %3, align 4, !tbaa !5
  %101 = add nsw i32 %100, -1
  store i32 %101, ptr %3, align 4, !tbaa !5
  br label %64, !llvm.loop !13

102:                                              ; preds = %67
  %103 = load i32, ptr getelementptr inbounds ([256 x i32], ptr @trans, i64 0, i64 88), align 16, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [15 x i32], ptr @mcnt, i64 0, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %116

108:                                              ; preds = %102
  %109 = load i32, ptr getelementptr inbounds ([256 x i32], ptr @trans, i64 0, i64 89), align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [15 x i32], ptr @mcnt, i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %116

114:                                              ; preds = %108
  %115 = load i32, ptr getelementptr inbounds ([256 x i32], ptr @trans, i64 0, i64 88), align 16, !tbaa !5
  store i32 %115, ptr getelementptr inbounds ([5 x i32], ptr @mx, i64 0, i64 4), align 16, !tbaa !5
  br label %116

116:                                              ; preds = %114, %108, %102
  ret void
}

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


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

@trans = external dso_local local_unnamed_addr global [256 x i32], align 16
@mine = external dso_local local_unnamed_addr global [25 x i8], align 16
@msz = external dso_local local_unnamed_addr global [5 x i32], align 16
@mcnt = external dso_local local_unnamed_addr global [15 x i32], align 16
@mx = external dso_local local_unnamed_addr global [5 x i32], align 16
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1

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

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

; Function Attrs: mustprogress nofree nounwind uwtable
define dso_local void @_Z4initv() local_unnamed_addr #2 {
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(20) @msz, i8 0, i64 20, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(60) @mcnt, i8 0, i64 60, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(20) @mx, i8 -1, i64 20, i1 false)
  %1 = load i8, ptr @mine, align 16, !tbaa !5
  %.not25 = icmp eq i8 %1, 0
  br i1 %.not25, label %.preheader24, label %.lr.ph

.preheader24.loopexit:                            ; preds = %110
  %.pre = load i32, ptr @mcnt, align 16, !tbaa !8
  %.phi.trans.insert = sext i32 %.pre to i64
  %.phi.trans.insert35 = getelementptr inbounds [5 x i32], ptr @msz, i64 0, i64 %.phi.trans.insert
  %.pre36 = load i32, ptr %.phi.trans.insert35, align 4, !tbaa !8
  %.pre37 = load i32, ptr getelementptr inbounds (i8, ptr @mcnt, i64 4), align 4, !tbaa !8
  %.pre38 = load i32, ptr getelementptr inbounds (i8, ptr @mcnt, i64 8), align 8, !tbaa !8
  %.pre39 = load i32, ptr getelementptr inbounds (i8, ptr @mcnt, i64 12), align 4, !tbaa !8
  %.pre40 = load i32, ptr getelementptr inbounds (i8, ptr @mcnt, i64 16), align 16, !tbaa !8
  %.pre41 = load i32, ptr getelementptr inbounds (i8, ptr @mcnt, i64 20), align 4, !tbaa !8
  %.pre42 = load i32, ptr getelementptr inbounds (i8, ptr @mcnt, i64 24), align 8, !tbaa !8
  %.pre43 = load i32, ptr getelementptr inbounds (i8, ptr @mcnt, i64 28), align 4, !tbaa !8
  %.pre44 = load i32, ptr getelementptr inbounds (i8, ptr @mcnt, i64 32), align 16, !tbaa !8
  %.pre45 = load i32, ptr getelementptr inbounds (i8, ptr @mcnt, i64 36), align 4, !tbaa !8
  %.pre46 = load i32, ptr getelementptr inbounds (i8, ptr @mcnt, i64 40), align 8, !tbaa !8
  %.pre47 = load i32, ptr getelementptr inbounds (i8, ptr @mcnt, i64 44), align 4, !tbaa !8
  %.pre48 = load i32, ptr getelementptr inbounds (i8, ptr @mcnt, i64 48), align 16, !tbaa !8
  %2 = sext i32 %.pre to i64
  %3 = add nsw i32 %.pre36, 1
  %4 = sext i32 %.pre37 to i64
  %5 = sext i32 %.pre38 to i64
  %6 = sext i32 %.pre39 to i64
  %7 = sext i32 %.pre40 to i64
  %8 = sext i32 %.pre41 to i64
  %9 = sext i32 %.pre42 to i64
  %10 = sext i32 %.pre43 to i64
  %11 = sext i32 %.pre44 to i64
  %12 = sext i32 %.pre45 to i64
  %13 = sext i32 %.pre46 to i64
  %14 = sext i32 %.pre47 to i64
  %15 = sext i32 %.pre48 to i64
  br label %.preheader24

.preheader24:                                     ; preds = %0, %.preheader24.loopexit
  %16 = phi i64 [ %15, %.preheader24.loopexit ], [ 0, %0 ]
  %17 = phi i64 [ %14, %.preheader24.loopexit ], [ 0, %0 ]
  %18 = phi i64 [ %13, %.preheader24.loopexit ], [ 0, %0 ]
  %19 = phi i64 [ %12, %.preheader24.loopexit ], [ 0, %0 ]
  %20 = phi i64 [ %11, %.preheader24.loopexit ], [ 0, %0 ]
  %21 = phi i64 [ %10, %.preheader24.loopexit ], [ 0, %0 ]
  %22 = phi i64 [ %9, %.preheader24.loopexit ], [ 0, %0 ]
  %23 = phi i64 [ %8, %.preheader24.loopexit ], [ 0, %0 ]
  %24 = phi i64 [ %7, %.preheader24.loopexit ], [ 0, %0 ]
  %25 = phi i64 [ %6, %.preheader24.loopexit ], [ 0, %0 ]
  %26 = phi i64 [ %5, %.preheader24.loopexit ], [ 0, %0 ]
  %27 = phi i64 [ %4, %.preheader24.loopexit ], [ 0, %0 ]
  %28 = phi i32 [ %3, %.preheader24.loopexit ], [ 1, %0 ]
  %29 = phi i64 [ %2, %.preheader24.loopexit ], [ 0, %0 ]
  %30 = getelementptr inbounds [5 x i32], ptr @msz, i64 0, i64 %29
  store i32 %28, ptr %30, align 4, !tbaa !8
  %31 = getelementptr inbounds [5 x i32], ptr @mx, i64 0, i64 %29
  store i32 0, ptr %31, align 4, !tbaa !8
  %32 = getelementptr inbounds [5 x i32], ptr @msz, i64 0, i64 %27
  %33 = load i32, ptr %32, align 4, !tbaa !8
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %32, align 4, !tbaa !8
  %35 = getelementptr inbounds [5 x i32], ptr @mx, i64 0, i64 %27
  store i32 1, ptr %35, align 4, !tbaa !8
  %36 = getelementptr inbounds [5 x i32], ptr @msz, i64 0, i64 %26
  %37 = load i32, ptr %36, align 4, !tbaa !8
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %36, align 4, !tbaa !8
  %39 = getelementptr inbounds [5 x i32], ptr @mx, i64 0, i64 %26
  store i32 2, ptr %39, align 4, !tbaa !8
  %40 = getelementptr inbounds [5 x i32], ptr @msz, i64 0, i64 %25
  %41 = load i32, ptr %40, align 4, !tbaa !8
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %40, align 4, !tbaa !8
  %43 = getelementptr inbounds [5 x i32], ptr @mx, i64 0, i64 %25
  store i32 3, ptr %43, align 4, !tbaa !8
  %44 = getelementptr inbounds [5 x i32], ptr @msz, i64 0, i64 %24
  %45 = load i32, ptr %44, align 4, !tbaa !8
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %44, align 4, !tbaa !8
  %47 = getelementptr inbounds [5 x i32], ptr @mx, i64 0, i64 %24
  store i32 4, ptr %47, align 4, !tbaa !8
  %48 = getelementptr inbounds [5 x i32], ptr @msz, i64 0, i64 %23
  %49 = load i32, ptr %48, align 4, !tbaa !8
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %48, align 4, !tbaa !8
  %51 = getelementptr inbounds [5 x i32], ptr @mx, i64 0, i64 %23
  store i32 5, ptr %51, align 4, !tbaa !8
  %52 = getelementptr inbounds [5 x i32], ptr @msz, i64 0, i64 %22
  %53 = load i32, ptr %52, align 4, !tbaa !8
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %52, align 4, !tbaa !8
  %55 = getelementptr inbounds [5 x i32], ptr @mx, i64 0, i64 %22
  store i32 6, ptr %55, align 4, !tbaa !8
  %56 = getelementptr inbounds [5 x i32], ptr @msz, i64 0, i64 %21
  %57 = load i32, ptr %56, align 4, !tbaa !8
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %56, align 4, !tbaa !8
  %59 = getelementptr inbounds [5 x i32], ptr @mx, i64 0, i64 %21
  store i32 7, ptr %59, align 4, !tbaa !8
  %60 = getelementptr inbounds [5 x i32], ptr @msz, i64 0, i64 %20
  %61 = load i32, ptr %60, align 4, !tbaa !8
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %60, align 4, !tbaa !8
  %63 = getelementptr inbounds [5 x i32], ptr @mx, i64 0, i64 %20
  store i32 8, ptr %63, align 4, !tbaa !8
  %64 = getelementptr inbounds [5 x i32], ptr @msz, i64 0, i64 %19
  %65 = load i32, ptr %64, align 4, !tbaa !8
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %64, align 4, !tbaa !8
  %67 = getelementptr inbounds [5 x i32], ptr @mx, i64 0, i64 %19
  store i32 9, ptr %67, align 4, !tbaa !8
  %68 = getelementptr inbounds [5 x i32], ptr @msz, i64 0, i64 %18
  %69 = load i32, ptr %68, align 4, !tbaa !8
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %68, align 4, !tbaa !8
  %71 = getelementptr inbounds [5 x i32], ptr @mx, i64 0, i64 %18
  store i32 10, ptr %71, align 4, !tbaa !8
  %72 = getelementptr inbounds [5 x i32], ptr @msz, i64 0, i64 %17
  %73 = load i32, ptr %72, align 4, !tbaa !8
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %72, align 4, !tbaa !8
  %75 = getelementptr inbounds [5 x i32], ptr @mx, i64 0, i64 %17
  store i32 11, ptr %75, align 4, !tbaa !8
  %76 = getelementptr inbounds [5 x i32], ptr @msz, i64 0, i64 %16
  %77 = load i32, ptr %76, align 4, !tbaa !8
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %76, align 4, !tbaa !8
  %79 = getelementptr inbounds [5 x i32], ptr @mx, i64 0, i64 %16
  store i32 12, ptr %79, align 4, !tbaa !8
  %80 = load i32, ptr getelementptr inbounds (i8, ptr @mcnt, i64 52), align 4, !tbaa !8
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [5 x i32], ptr @msz, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !8
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %82, align 4, !tbaa !8
  %85 = getelementptr inbounds [5 x i32], ptr @mx, i64 0, i64 %81
  store i32 13, ptr %85, align 4, !tbaa !8
  %86 = load i32, ptr getelementptr inbounds (i8, ptr @mcnt, i64 56), align 8, !tbaa !8
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [5 x i32], ptr @msz, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !8
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %88, align 4, !tbaa !8
  %91 = getelementptr inbounds [5 x i32], ptr @mx, i64 0, i64 %87
  store i32 14, ptr %91, align 4, !tbaa !8
  %92 = load i32, ptr getelementptr inbounds (i8, ptr @msz, i64 16), align 16, !tbaa !8
  %93 = load i32, ptr getelementptr inbounds (i8, ptr @msz, i64 12), align 4, !tbaa !8
  %94 = add nsw i32 %93, %92
  store i32 %94, ptr getelementptr inbounds (i8, ptr @msz, i64 12), align 4, !tbaa !8
  %95 = load i32, ptr getelementptr inbounds (i8, ptr @mx, i64 12), align 4, !tbaa !8
  %96 = load i32, ptr getelementptr inbounds (i8, ptr @mx, i64 16), align 16, !tbaa !8
  %97 = icmp slt i32 %95, %96
  br i1 %97, label %113, label %.preheader.1

.lr.ph:                                           ; preds = %0, %110
  %indvars.iv = phi i64 [ %indvars.iv.next, %110 ], [ 0, %0 ]
  %98 = phi i8 [ %112, %110 ], [ %1, %0 ]
  %99 = sext i8 %98 to i64
  %100 = getelementptr inbounds [256 x i32], ptr @trans, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !8
  %102 = icmp eq i32 %101, -1
  br i1 %102, label %103, label %105

103:                                              ; preds = %.lr.ph
  %104 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %110

105:                                              ; preds = %.lr.ph
  %106 = sext i32 %101 to i64
  %107 = getelementptr inbounds [15 x i32], ptr @mcnt, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !8
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %107, align 4, !tbaa !8
  br label %110

110:                                              ; preds = %105, %103
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %111 = getelementptr inbounds [25 x i8], ptr @mine, i64 0, i64 %indvars.iv.next
  %112 = load i8, ptr %111, align 1, !tbaa !5
  %.not = icmp eq i8 %112, 0
  br i1 %.not, label %.preheader24.loopexit, label %.lr.ph, !llvm.loop !10

113:                                              ; preds = %.preheader24
  store i32 %96, ptr getelementptr inbounds (i8, ptr @mx, i64 12), align 4, !tbaa !8
  br label %.preheader.1

.preheader.1:                                     ; preds = %.preheader24, %113
  %114 = phi i32 [ %95, %.preheader24 ], [ %96, %113 ]
  %115 = load i32, ptr getelementptr inbounds (i8, ptr @msz, i64 8), align 8, !tbaa !8
  %116 = add nsw i32 %115, %94
  store i32 %116, ptr getelementptr inbounds (i8, ptr @msz, i64 8), align 8, !tbaa !8
  %117 = load i32, ptr getelementptr inbounds (i8, ptr @mx, i64 8), align 8, !tbaa !8
  %118 = icmp slt i32 %117, %114
  br i1 %118, label %119, label %.preheader.2

119:                                              ; preds = %.preheader.1
  store i32 %114, ptr getelementptr inbounds (i8, ptr @mx, i64 8), align 8, !tbaa !8
  br label %.preheader.2

.preheader.2:                                     ; preds = %119, %.preheader.1
  %120 = phi i32 [ %114, %119 ], [ %117, %.preheader.1 ]
  %121 = load i32, ptr getelementptr inbounds (i8, ptr @msz, i64 4), align 4, !tbaa !8
  %122 = add nsw i32 %121, %116
  store i32 %122, ptr getelementptr inbounds (i8, ptr @msz, i64 4), align 4, !tbaa !8
  %123 = load i32, ptr getelementptr inbounds (i8, ptr @mx, i64 4), align 4, !tbaa !8
  %124 = icmp slt i32 %123, %120
  br i1 %124, label %125, label %126

125:                                              ; preds = %.preheader.2
  store i32 %120, ptr getelementptr inbounds (i8, ptr @mx, i64 4), align 4, !tbaa !8
  br label %126

126:                                              ; preds = %125, %.preheader.2
  %127 = load i32, ptr getelementptr inbounds (i8, ptr @trans, i64 352), align 16, !tbaa !8
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [15 x i32], ptr @mcnt, i64 0, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !8
  %.not22 = icmp eq i32 %130, 0
  br i1 %.not22, label %137, label %131

131:                                              ; preds = %126
  %132 = load i32, ptr getelementptr inbounds (i8, ptr @trans, i64 356), align 4, !tbaa !8
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [15 x i32], ptr @mcnt, i64 0, i64 %133
  %135 = load i32, ptr %134, align 4, !tbaa !8
  %.not23 = icmp eq i32 %135, 0
  br i1 %.not23, label %137, label %136

136:                                              ; preds = %131
  store i32 %127, ptr getelementptr inbounds (i8, ptr @mx, i64 16), align 16, !tbaa !8
  br label %137

137:                                              ; preds = %136, %131, %126
  ret void
}

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

!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,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass