; LLVM IR from tangjz/acm-icpc :: 51nod (1847)

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

@cipher = external dso_local global ptr, align 8
@tot = external dso_local global i32, align 4
@pr = external dso_local global [31623 x i32], align 16
@d = external dso_local global [31623 x i32], align 16
@text = external dso_local global [51 x [251 x i32]], align 16
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %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 ptr, align 8
  %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
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 2, ptr %2, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %65, %0
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = icmp slt i32 %13, 31623
  br i1 %14, label %16, label %15

15:                                               ; preds = %12
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %68

16:                                               ; preds = %12
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [31623 x i32], ptr @d, i64 0, i64 %18
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %31, label %22

22:                                               ; preds = %16
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [31623 x i32], ptr @d, i64 0, i64 %25
  store i32 %23, ptr %26, align 4, !tbaa !5
  %27 = load i32, ptr @tot, align 4, !tbaa !5
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr @tot, align 4, !tbaa !5
  %29 = sext i32 %27 to i64
  %30 = getelementptr inbounds [31623 x i32], ptr @pr, i64 0, i64 %29
  store i32 %23, ptr %30, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %22, %16
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  br label %32

32:                                               ; preds = %60, %31
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [31623 x i32], ptr @pr, i64 0, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = mul nsw i32 %33, %37
  store i32 %38, ptr %5, align 4, !tbaa !5
  %39 = icmp slt i32 %38, 31623
  br i1 %39, label %41, label %40

40:                                               ; preds = %32
  store i32 5, ptr %3, align 4
  br label %63

41:                                               ; preds = %32
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [31623 x i32], ptr @pr, i64 0, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = load i32, ptr %5, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [31623 x i32], ptr @d, i64 0, i64 %47
  store i32 %45, ptr %48, align 4, !tbaa !5
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [31623 x i32], ptr @d, i64 0, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [31623 x i32], ptr @pr, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = icmp eq i32 %52, %56
  br i1 %57, label %58, label %59

58:                                               ; preds = %41
  store i32 5, ptr %3, align 4
  br label %63

59:                                               ; preds = %41
  br label %60

60:                                               ; preds = %59
  %61 = load i32, ptr %4, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %4, align 4, !tbaa !5
  br label %32, !llvm.loop !9

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

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64
  %66 = load i32, ptr %2, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %2, align 4, !tbaa !5
  br label %12, !llvm.loop !11

68:                                               ; preds = %15
  %69 = load i32, ptr @tot, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [31623 x i32], ptr @pr, i64 0, i64 %70
  store i32 2147483647, ptr %71, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %72 = load ptr, ptr @cipher, align 8, !tbaa !12
  store ptr %72, ptr %6, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %73

73:                                               ; preds = %123, %68
  %74 = load i32, ptr %7, align 4, !tbaa !5
  %75 = icmp slt i32 %74, 51
  br i1 %75, label %77, label %76

76:                                               ; preds = %73
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %126

77:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %119, %77
  %79 = load i32, ptr %8, align 4, !tbaa !5
  %80 = icmp slt i32 %79, 251
  br i1 %80, label %82, label %81

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

82:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %113, %82
  %84 = load i32, ptr %9, align 4, !tbaa !5
  %85 = icmp slt i32 %84, 5
  br i1 %85, label %87, label %86

86:                                               ; preds = %83
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %118

87:                                               ; preds = %83
  %88 = load i32, ptr %7, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [51 x [251 x i32]], ptr @text, i64 0, i64 %89
  %91 = load i32, ptr %8, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [251 x i32], ptr %90, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = mul nsw i32 %94, 89
  %96 = load ptr, ptr %6, align 8, !tbaa !12
  %97 = load i8, ptr %96, align 1, !tbaa !14
  %98 = sext i8 %97 to i32
  %99 = sub nsw i32 %98, 37
  %100 = load ptr, ptr %6, align 8, !tbaa !12
  %101 = load i8, ptr %100, align 1, !tbaa !14
  %102 = sext i8 %101 to i32
  %103 = icmp sgt i32 %102, 92
  %104 = zext i1 %103 to i32
  %105 = sub nsw i32 %99, %104
  %106 = add nsw i32 %95, %105
  %107 = load i32, ptr %7, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [51 x [251 x i32]], ptr @text, i64 0, i64 %108
  %110 = load i32, ptr %8, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [251 x i32], ptr %109, i64 0, i64 %111
  store i32 %106, ptr %112, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %87
  %114 = load i32, ptr %9, align 4, !tbaa !5
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %9, align 4, !tbaa !5
  %116 = load ptr, ptr %6, align 8, !tbaa !12
  %117 = getelementptr inbounds i8, ptr %116, i32 1
  store ptr %117, ptr %6, align 8, !tbaa !12
  br label %83, !llvm.loop !15

118:                                              ; preds = %86
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %8, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %8, align 4, !tbaa !5
  br label %78, !llvm.loop !16

122:                                              ; preds = %81
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %7, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %7, align 4, !tbaa !5
  br label %73, !llvm.loop !17

126:                                              ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %127 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %10, ptr noundef %11)
  %128 = load i32, ptr %10, align 4, !tbaa !5
  %129 = load i32, ptr %11, align 4, !tbaa !5
  %130 = call noundef i32 @_Z5solveii(i32 noundef %128, i32 noundef %129)
  %131 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %130)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %132 = load i32, ptr %1, align 4
  ret i32 %132
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z5solveii(i32 noundef, i32 noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}


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

@cipher = external dso_local local_unnamed_addr global ptr, align 8
@tot = external dso_local local_unnamed_addr global i32, align 4
@pr = external dso_local local_unnamed_addr global [31623 x i32], align 16
@d = external dso_local local_unnamed_addr global [31623 x i32], align 16
@text = external dso_local local_unnamed_addr global [51 x [251 x i32]], align 16
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %tot.promoted = load i32, ptr @tot, align 4, !tbaa !5
  br label %7

3:                                                ; preds = %._crit_edge
  %4 = sext i32 %16 to i64
  %5 = getelementptr inbounds [31623 x i32], ptr @pr, i64 0, i64 %4
  store i32 2147483647, ptr %5, align 4, !tbaa !5
  %6 = load ptr, ptr @cipher, align 8, !tbaa !9
  br label %vector.memcheck

7:                                                ; preds = %0, %._crit_edge
  %indvars.iv42 = phi i64 [ 2, %0 ], [ %indvars.iv.next43, %._crit_edge ]
  %8 = phi i32 [ %tot.promoted, %0 ], [ %16, %._crit_edge ]
  %9 = getelementptr inbounds [31623 x i32], ptr @d, i64 0, i64 %indvars.iv42
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %.not = icmp eq i32 %10, 0
  %11 = trunc nuw nsw i64 %indvars.iv42 to i32
  br i1 %.not, label %12, label %._crit_edge54

12:                                               ; preds = %7
  store i32 %11, ptr %9, align 4, !tbaa !5
  %13 = add nsw i32 %8, 1
  store i32 %13, ptr @tot, align 4, !tbaa !5
  %14 = sext i32 %8 to i64
  %15 = getelementptr inbounds [31623 x i32], ptr @pr, i64 0, i64 %14
  store i32 %11, ptr %15, align 4, !tbaa !5
  br label %._crit_edge54

._crit_edge54:                                    ; preds = %7, %12
  %16 = phi i32 [ %13, %12 ], [ %8, %7 ]
  %17 = load i32, ptr @pr, align 16, !tbaa !5
  %18 = mul nsw i32 %17, %11
  %19 = icmp slt i32 %18, 31623
  br i1 %19, label %.lr.ph, label %._crit_edge

20:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %21 = getelementptr inbounds [31623 x i32], ptr @pr, i64 0, i64 %indvars.iv.next
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %23 = mul nsw i32 %22, %11
  %24 = icmp slt i32 %23, 31623
  br i1 %24, label %.lr.ph, label %._crit_edge, !llvm.loop !11

.lr.ph:                                           ; preds = %._crit_edge54, %20
  %indvars.iv = phi i64 [ %indvars.iv.next, %20 ], [ 0, %._crit_edge54 ]
  %25 = phi i32 [ %23, %20 ], [ %18, %._crit_edge54 ]
  %26 = phi i32 [ %22, %20 ], [ %17, %._crit_edge54 ]
  %27 = sext i32 %25 to i64
  %28 = getelementptr inbounds [31623 x i32], ptr @d, i64 0, i64 %27
  store i32 %26, ptr %28, align 4, !tbaa !5
  %29 = load i32, ptr %9, align 4, !tbaa !5
  %30 = icmp eq i32 %29, %26
  br i1 %30, label %._crit_edge, label %20

._crit_edge:                                      ; preds = %20, %.lr.ph, %._crit_edge54
  %indvars.iv.next43 = add nuw nsw i64 %indvars.iv42, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next43, 31623
  br i1 %exitcond.not, label %3, label %7, !llvm.loop !13

vector.memcheck:                                  ; preds = %.loopexit, %3
  %indvars.iv50 = phi i64 [ 1, %3 ], [ %indvars.iv.next51, %.loopexit ]
  %.02739 = phi ptr [ %6, %3 ], [ %114, %.loopexit ]
  %scevgep = getelementptr i8, ptr %.02739, i64 1250
  %bound0 = icmp ugt ptr %scevgep, getelementptr inbounds (i8, ptr @text, i64 1008)
  %bound1 = icmp ult ptr %.02739, getelementptr inbounds (i8, ptr @text, i64 51204)
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.preheader.preheader, label %vector.ph

.preheader.preheader:                             ; preds = %vector.body, %vector.memcheck
  %indvars.iv46.ph = phi i64 [ 1, %vector.memcheck ], [ 249, %vector.body ]
  %.137.ph = phi ptr [ %.02739, %vector.memcheck ], [ %ind.end, %vector.body ]
  br label %.preheader

vector.ph:                                        ; preds = %vector.memcheck
  %ind.end = getelementptr i8, ptr %.02739, i64 1240
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %offset.idx58 = mul i64 %index, 5
  %next.gep = getelementptr i8, ptr %.02739, i64 %offset.idx58
  %31 = getelementptr inbounds [51 x [251 x i32]], ptr @text, i64 0, i64 %indvars.iv50, i64 %offset.idx
  %wide.load = load <4 x i32>, ptr %31, align 4, !tbaa !5, !alias.scope !14, !noalias !17
  %32 = mul nsw <4 x i32> %wide.load, <i32 89, i32 89, i32 89, i32 89>
  %wide.vec = load <20 x i8>, ptr %next.gep, align 1, !tbaa !19
  %strided.vec = shufflevector <20 x i8> %wide.vec, <20 x i8> poison, <4 x i32> <i32 0, i32 5, i32 10, i32 15>
  %strided.vec59 = shufflevector <20 x i8> %wide.vec, <20 x i8> poison, <4 x i32> <i32 1, i32 6, i32 11, i32 16>
  %strided.vec60 = shufflevector <20 x i8> %wide.vec, <20 x i8> poison, <4 x i32> <i32 2, i32 7, i32 12, i32 17>
  %strided.vec61 = shufflevector <20 x i8> %wide.vec, <20 x i8> poison, <4 x i32> <i32 3, i32 8, i32 13, i32 18>
  %strided.vec62 = shufflevector <20 x i8> %wide.vec, <20 x i8> poison, <4 x i32> <i32 4, i32 9, i32 14, i32 19>
  %33 = sext <4 x i8> %strided.vec to <4 x i32>
  %34 = icmp sgt <4 x i8> %strided.vec, <i8 92, i8 92, i8 92, i8 92>
  %35 = sext <4 x i1> %34 to <4 x i32>
  %36 = add <4 x i32> %32, <i32 -37, i32 -37, i32 -37, i32 -37>
  %37 = add <4 x i32> %36, %33
  %38 = add <4 x i32> %37, %35
  store <4 x i32> %38, ptr %31, align 4, !tbaa !5, !alias.scope !14, !noalias !17
  %39 = mul nsw <4 x i32> %38, <i32 89, i32 89, i32 89, i32 89>
  %40 = sext <4 x i8> %strided.vec59 to <4 x i32>
  %41 = icmp sgt <4 x i8> %strided.vec59, <i8 92, i8 92, i8 92, i8 92>
  %42 = sext <4 x i1> %41 to <4 x i32>
  %43 = add <4 x i32> %39, <i32 -37, i32 -37, i32 -37, i32 -37>
  %44 = add <4 x i32> %43, %40
  %45 = add <4 x i32> %44, %42
  store <4 x i32> %45, ptr %31, align 4, !tbaa !5, !alias.scope !14, !noalias !17
  %46 = mul nsw <4 x i32> %45, <i32 89, i32 89, i32 89, i32 89>
  %47 = sext <4 x i8> %strided.vec60 to <4 x i32>
  %48 = icmp sgt <4 x i8> %strided.vec60, <i8 92, i8 92, i8 92, i8 92>
  %49 = sext <4 x i1> %48 to <4 x i32>
  %50 = add <4 x i32> %46, <i32 -37, i32 -37, i32 -37, i32 -37>
  %51 = add <4 x i32> %50, %47
  %52 = add <4 x i32> %51, %49
  store <4 x i32> %52, ptr %31, align 4, !tbaa !5, !alias.scope !14, !noalias !17
  %53 = mul nsw <4 x i32> %52, <i32 89, i32 89, i32 89, i32 89>
  %54 = sext <4 x i8> %strided.vec61 to <4 x i32>
  %55 = icmp sgt <4 x i8> %strided.vec61, <i8 92, i8 92, i8 92, i8 92>
  %56 = sext <4 x i1> %55 to <4 x i32>
  %57 = add <4 x i32> %53, <i32 -37, i32 -37, i32 -37, i32 -37>
  %58 = add <4 x i32> %57, %54
  %59 = add <4 x i32> %58, %56
  store <4 x i32> %59, ptr %31, align 4, !tbaa !5, !alias.scope !14, !noalias !17
  %60 = mul nsw <4 x i32> %59, <i32 89, i32 89, i32 89, i32 89>
  %61 = sext <4 x i8> %strided.vec62 to <4 x i32>
  %62 = icmp sgt <4 x i8> %strided.vec62, <i8 92, i8 92, i8 92, i8 92>
  %63 = sext <4 x i1> %62 to <4 x i32>
  %64 = add <4 x i32> %60, <i32 -37, i32 -37, i32 -37, i32 -37>
  %65 = add <4 x i32> %64, %61
  %66 = add <4 x i32> %65, %63
  store <4 x i32> %66, ptr %31, align 4, !tbaa !5, !alias.scope !14, !noalias !17
  %index.next = add nuw i64 %index, 4
  %67 = icmp eq i64 %index.next, 248
  br i1 %67, label %.preheader.preheader, label %vector.body, !llvm.loop !20

68:                                               ; preds = %.loopexit
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %69 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %70 = load i32, ptr %1, align 4, !tbaa !5
  %71 = load i32, ptr %2, align 4, !tbaa !5
  %72 = call noundef i32 @_Z5solveii(i32 noundef %70, i32 noundef %71)
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %72)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  ret i32 0

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %indvars.iv46 = phi i64 [ %indvars.iv.next47, %.preheader ], [ %indvars.iv46.ph, %.preheader.preheader ]
  %.137 = phi ptr [ %114, %.preheader ], [ %.137.ph, %.preheader.preheader ]
  %74 = getelementptr inbounds [51 x [251 x i32]], ptr @text, i64 0, i64 %indvars.iv50, i64 %indvars.iv46
  %.promoted = load i32, ptr %74, align 4, !tbaa !5
  %75 = mul nsw i32 %.promoted, 89
  %76 = load i8, ptr %.137, align 1, !tbaa !19
  %77 = sext i8 %76 to i32
  %78 = icmp sgt i8 %76, 92
  %.neg = sext i1 %78 to i32
  %79 = add i32 %75, -37
  %80 = add i32 %79, %77
  %81 = add i32 %80, %.neg
  store i32 %81, ptr %74, align 4, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %.137, i64 1
  %83 = mul nsw i32 %81, 89
  %84 = load i8, ptr %82, align 1, !tbaa !19
  %85 = sext i8 %84 to i32
  %86 = icmp sgt i8 %84, 92
  %.neg.1 = sext i1 %86 to i32
  %87 = add i32 %83, -37
  %88 = add i32 %87, %85
  %89 = add i32 %88, %.neg.1
  store i32 %89, ptr %74, align 4, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %.137, i64 2
  %91 = mul nsw i32 %89, 89
  %92 = load i8, ptr %90, align 1, !tbaa !19
  %93 = sext i8 %92 to i32
  %94 = icmp sgt i8 %92, 92
  %.neg.2 = sext i1 %94 to i32
  %95 = add i32 %91, -37
  %96 = add i32 %95, %93
  %97 = add i32 %96, %.neg.2
  store i32 %97, ptr %74, align 4, !tbaa !5
  %98 = getelementptr inbounds i8, ptr %.137, i64 3
  %99 = mul nsw i32 %97, 89
  %100 = load i8, ptr %98, align 1, !tbaa !19
  %101 = sext i8 %100 to i32
  %102 = icmp sgt i8 %100, 92
  %.neg.3 = sext i1 %102 to i32
  %103 = add i32 %99, -37
  %104 = add i32 %103, %101
  %105 = add i32 %104, %.neg.3
  store i32 %105, ptr %74, align 4, !tbaa !5
  %106 = getelementptr inbounds i8, ptr %.137, i64 4
  %107 = mul nsw i32 %105, 89
  %108 = load i8, ptr %106, align 1, !tbaa !19
  %109 = sext i8 %108 to i32
  %110 = icmp sgt i8 %108, 92
  %.neg.4 = sext i1 %110 to i32
  %111 = add i32 %107, -37
  %112 = add i32 %111, %109
  %113 = add i32 %112, %.neg.4
  store i32 %113, ptr %74, align 4, !tbaa !5
  %114 = getelementptr inbounds i8, ptr %.137, i64 5
  %indvars.iv.next47 = add nuw nsw i64 %indvars.iv46, 1
  %exitcond49.not = icmp eq i64 %indvars.iv.next47, 251
  br i1 %exitcond49.not, label %.loopexit, label %.preheader, !llvm.loop !23

.loopexit:                                        ; preds = %.preheader
  %indvars.iv.next51 = add nuw nsw i64 %indvars.iv50, 1
  %exitcond53.not = icmp eq i64 %indvars.iv.next51, 51
  br i1 %exitcond53.not, label %68, label %vector.memcheck, !llvm.loop !24
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z5solveii(i32 noundef, i32 noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15}
!15 = distinct !{!15, !16}
!16 = distinct !{!16, !"LVerDomain"}
!17 = !{!18}
!18 = distinct !{!18, !16}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !12, !21, !22}
!21 = !{!"llvm.loop.isvectorized", i32 1}
!22 = !{!"llvm.loop.unroll.runtime.disable"}
!23 = distinct !{!23, !12, !21}
!24 = distinct !{!24, !12}


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