; LLVM IR from Shah-Shishir/Codeforces-Solutions :: 445A. DZY Loves Chessboard (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"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@str = external dso_local global [105 x [105 x i8]], align 16
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = 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
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  br label %6

6:                                                ; preds = %159, %0
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
  %8 = icmp ne i32 %7, -1
  br i1 %8, label %9, label %160

9:                                                ; preds = %6
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %10

10:                                               ; preds = %31, %9
  %11 = load i32, ptr %4, align 4, !tbaa !5
  %12 = load i32, ptr %2, align 4, !tbaa !5
  %13 = icmp slt i32 %11, %12
  br i1 %13, label %14, label %34

14:                                               ; preds = %10
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %27, %14
  %16 = load i32, ptr %5, align 4, !tbaa !5
  %17 = load i32, ptr %3, align 4, !tbaa !5
  %18 = icmp slt i32 %16, %17
  br i1 %18, label %19, label %30

19:                                               ; preds = %15
  %20 = load i32, ptr %4, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %21
  %23 = load i32, ptr %5, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [105 x i8], ptr %22, i64 0, i64 %24
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) %25)
  br label %27

27:                                               ; preds = %19
  %28 = load i32, ptr %5, align 4, !tbaa !5
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %5, align 4, !tbaa !5
  br label %15, !llvm.loop !9

30:                                               ; preds = %15
  br label %31

31:                                               ; preds = %30
  %32 = load i32, ptr %4, align 4, !tbaa !5
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %4, align 4, !tbaa !5
  br label %10, !llvm.loop !11

34:                                               ; preds = %10
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %122, %34
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %39, label %125

39:                                               ; preds = %35
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = and i32 %40, 1
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %43, label %82

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

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

48:                                               ; preds = %44
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %50
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [105 x i8], ptr %51, i64 0, i64 %53
  %55 = load i8, ptr %54, align 1, !tbaa !12
  %56 = sext i8 %55 to i32
  %57 = icmp eq i32 %56, 45
  br i1 %57, label %58, label %59

58:                                               ; preds = %48
  br label %78

59:                                               ; preds = %48
  %60 = load i32, ptr %5, align 4, !tbaa !5
  %61 = and i32 %60, 1
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %70

63:                                               ; preds = %59
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %65
  %67 = load i32, ptr %5, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [105 x i8], ptr %66, i64 0, i64 %68
  store i8 66, ptr %69, align 1, !tbaa !12
  br label %77

70:                                               ; preds = %59
  %71 = load i32, ptr %4, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %72
  %74 = load i32, ptr %5, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [105 x i8], ptr %73, i64 0, i64 %75
  store i8 87, ptr %76, align 1, !tbaa !12
  br label %77

77:                                               ; preds = %70, %63
  br label %78

78:                                               ; preds = %77, %58
  %79 = load i32, ptr %5, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %5, align 4, !tbaa !5
  br label %44, !llvm.loop !13

81:                                               ; preds = %44
  br label %121

82:                                               ; preds = %39
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %83

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

87:                                               ; preds = %83
  %88 = load i32, ptr %4, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %89
  %91 = load i32, ptr %5, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [105 x i8], ptr %90, i64 0, i64 %92
  %94 = load i8, ptr %93, align 1, !tbaa !12
  %95 = sext i8 %94 to i32
  %96 = icmp eq i32 %95, 45
  br i1 %96, label %97, label %98

97:                                               ; preds = %87
  br label %117

98:                                               ; preds = %87
  %99 = load i32, ptr %5, align 4, !tbaa !5
  %100 = and i32 %99, 1
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %109

102:                                              ; preds = %98
  %103 = load i32, ptr %4, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %104
  %106 = load i32, ptr %5, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [105 x i8], ptr %105, i64 0, i64 %107
  store i8 87, ptr %108, align 1, !tbaa !12
  br label %116

109:                                              ; preds = %98
  %110 = load i32, ptr %4, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %111
  %113 = load i32, ptr %5, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [105 x i8], ptr %112, i64 0, i64 %114
  store i8 66, ptr %115, align 1, !tbaa !12
  br label %116

116:                                              ; preds = %109, %102
  br label %117

117:                                              ; preds = %116, %97
  %118 = load i32, ptr %5, align 4, !tbaa !5
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %5, align 4, !tbaa !5
  br label %83, !llvm.loop !14

120:                                              ; preds = %83
  br label %121

121:                                              ; preds = %120, %81
  br label %122

122:                                              ; preds = %121
  %123 = load i32, ptr %4, align 4, !tbaa !5
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %4, align 4, !tbaa !5
  br label %35, !llvm.loop !15

125:                                              ; preds = %35
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %126

126:                                              ; preds = %156, %125
  %127 = load i32, ptr %4, align 4, !tbaa !5
  %128 = load i32, ptr %2, align 4, !tbaa !5
  %129 = icmp slt i32 %127, %128
  br i1 %129, label %130, label %159

130:                                              ; preds = %126
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %131

131:                                              ; preds = %152, %130
  %132 = load i32, ptr %5, align 4, !tbaa !5
  %133 = load i32, ptr %3, align 4, !tbaa !5
  %134 = icmp slt i32 %132, %133
  br i1 %134, label %135, label %155

135:                                              ; preds = %131
  %136 = load i32, ptr %4, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %137
  %139 = load i32, ptr %5, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [105 x i8], ptr %138, i64 0, i64 %140
  %142 = load i8, ptr %141, align 1, !tbaa !12
  %143 = sext i8 %142 to i32
  %144 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %143)
  %145 = load i32, ptr %5, align 4, !tbaa !5
  %146 = load i32, ptr %3, align 4, !tbaa !5
  %147 = sub nsw i32 %146, 1
  %148 = icmp eq i32 %145, %147
  br i1 %148, label %149, label %151

149:                                              ; preds = %135
  %150 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %151

151:                                              ; preds = %149, %135
  br label %152

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

155:                                              ; preds = %131
  br label %156

156:                                              ; preds = %155
  %157 = load i32, ptr %4, align 4, !tbaa !5
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %4, align 4, !tbaa !5
  br label %126, !llvm.loop !17

159:                                              ; preds = %126
  br label %6, !llvm.loop !18

160:                                              ; preds = %6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) #2

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 = { 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 = !{!7, !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !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"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@str = external dso_local global [105 x [105 x i8]], align 16
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %.not61 = icmp eq i32 %3, -1
  br i1 %.not61, label %._crit_edge62, label %.preheader47

.loopexit45:                                      ; preds = %._crit_edge59, %.preheader47, %.preheader46, %.preheader44
  %4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %.not = icmp eq i32 %4, -1
  br i1 %.not, label %._crit_edge62, label %.preheader47, !llvm.loop !5

.preheader47:                                     ; preds = %0, %.loopexit45
  %5 = load i32, ptr %1, align 4, !tbaa !7
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.preheader43.lr.ph, label %.loopexit45

.preheader43.lr.ph:                               ; preds = %.preheader47
  %7 = load i32, ptr %2, align 4
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.preheader43, label %.lr.ph56

.preheader46:                                     ; preds = %._crit_edge
  %9 = icmp sgt i32 %21, 0
  br i1 %9, label %.lr.ph56thread-pre-split, label %.loopexit45

.lr.ph56thread-pre-split:                         ; preds = %.preheader46
  %.pr = load i32, ptr %2, align 4
  br label %.lr.ph56

.lr.ph56:                                         ; preds = %.preheader43.lr.ph, %.lr.ph56thread-pre-split
  %10 = phi i32 [ %.pr, %.lr.ph56thread-pre-split ], [ %7, %.preheader43.lr.ph ]
  %11 = phi i32 [ %21, %.lr.ph56thread-pre-split ], [ %5, %.preheader43.lr.ph ]
  %12 = icmp sgt i32 %10, 0
  %wide.trip.count82 = zext nneg i32 %11 to i64
  %wide.trip.count = zext i32 %10 to i64
  %wide.trip.count77 = zext nneg i32 %10 to i64
  %min.iters.check158 = icmp ult i32 %10, 8
  %min.iters.check161 = icmp ult i32 %10, 16
  %n.vec165 = and i64 %wide.trip.count, 2147483632
  %cmp.n202 = icmp eq i64 %n.vec165, %wide.trip.count
  %n.vec.remaining207 = and i64 %wide.trip.count, 8
  %min.epilog.iters.check208.not.not = icmp eq i64 %n.vec.remaining207, 0
  %n.vec211 = and i64 %wide.trip.count, 2147483640
  %cmp.n233 = icmp eq i64 %n.vec211, %wide.trip.count
  %min.iters.check = icmp ult i32 %10, 8
  %min.iters.check104 = icmp ult i32 %10, 16
  %n.vec = and i64 %wide.trip.count, 2147483632
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  %n.vec.remaining = and i64 %wide.trip.count, 8
  %min.epilog.iters.check.not.not = icmp eq i64 %n.vec.remaining, 0
  %n.vec136 = and i64 %wide.trip.count, 2147483640
  %cmp.n156 = icmp eq i64 %n.vec136, %wide.trip.count
  br label %27

.preheader43:                                     ; preds = %.preheader43.lr.ph, %._crit_edge
  %13 = phi i32 [ %21, %._crit_edge ], [ %5, %.preheader43.lr.ph ]
  %14 = phi i32 [ %22, %._crit_edge ], [ %7, %.preheader43.lr.ph ]
  %indvars.iv68 = phi i64 [ %indvars.iv.next69, %._crit_edge ], [ 0, %.preheader43.lr.ph ]
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader43, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader43 ]
  %16 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv68, i64 %indvars.iv
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) %16)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %18 = load i32, ptr %2, align 4, !tbaa !7
  %19 = sext i32 %18 to i64
  %20 = icmp slt i64 %indvars.iv.next, %19
  br i1 %20, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !11

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i32, ptr %1, align 4, !tbaa !7
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader43
  %21 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %13, %.preheader43 ]
  %22 = phi i32 [ %18, %._crit_edge.loopexit ], [ %14, %.preheader43 ]
  %indvars.iv.next69 = add nuw nsw i64 %indvars.iv68, 1
  %23 = sext i32 %21 to i64
  %24 = icmp slt i64 %indvars.iv.next69, %23
  br i1 %24, label %.preheader43, label %.preheader46, !llvm.loop !12

.preheader44:                                     ; preds = %.loopexit
  %25 = load i32, ptr %2, align 4
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.preheader, label %.loopexit45

27:                                               ; preds = %.lr.ph56, %.loopexit
  %indvars.iv79 = phi i64 [ 0, %.lr.ph56 ], [ %indvars.iv.next80, %.loopexit ]
  %28 = and i64 %indvars.iv79, 1
  %.not37 = icmp eq i64 %28, 0
  br i1 %.not37, label %.preheader40, label %.preheader41

.preheader41:                                     ; preds = %27
  br i1 %12, label %iter.check160, label %.loopexit

iter.check160:                                    ; preds = %.preheader41
  br i1 %min.iters.check158, label %.lr.ph51.preheader, label %vector.main.loop.iter.check162

vector.main.loop.iter.check162:                   ; preds = %iter.check160
  br i1 %min.iters.check161, label %vec.epilog.ph205, label %vector.body166

vector.body166:                                   ; preds = %vector.main.loop.iter.check162, %pred.store.continue200
  %index167 = phi i64 [ %index.next201, %pred.store.continue200 ], [ 0, %vector.main.loop.iter.check162 ]
  %29 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %index167
  %wide.load168 = load <16 x i8>, ptr %29, align 1, !tbaa !14
  %30 = icmp ne <16 x i8> %wide.load168, <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>
  %31 = extractelement <16 x i1> %30, i64 0
  br i1 %31, label %pred.store.if169, label %pred.store.continue170

pred.store.if169:                                 ; preds = %vector.body166
  %32 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %index167
  store i8 87, ptr %32, align 1, !tbaa !14
  br label %pred.store.continue170

pred.store.continue170:                           ; preds = %pred.store.if169, %vector.body166
  %33 = extractelement <16 x i1> %30, i64 1
  br i1 %33, label %pred.store.if171, label %pred.store.continue172

pred.store.if171:                                 ; preds = %pred.store.continue170
  %34 = or disjoint i64 %index167, 1
  %35 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %34
  store i8 66, ptr %35, align 1, !tbaa !14
  br label %pred.store.continue172

pred.store.continue172:                           ; preds = %pred.store.if171, %pred.store.continue170
  %36 = extractelement <16 x i1> %30, i64 2
  br i1 %36, label %pred.store.if173, label %pred.store.continue174

pred.store.if173:                                 ; preds = %pred.store.continue172
  %37 = or disjoint i64 %index167, 2
  %38 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %37
  store i8 87, ptr %38, align 1, !tbaa !14
  br label %pred.store.continue174

pred.store.continue174:                           ; preds = %pred.store.if173, %pred.store.continue172
  %39 = extractelement <16 x i1> %30, i64 3
  br i1 %39, label %pred.store.if175, label %pred.store.continue176

pred.store.if175:                                 ; preds = %pred.store.continue174
  %40 = or disjoint i64 %index167, 3
  %41 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %40
  store i8 66, ptr %41, align 1, !tbaa !14
  br label %pred.store.continue176

pred.store.continue176:                           ; preds = %pred.store.if175, %pred.store.continue174
  %42 = extractelement <16 x i1> %30, i64 4
  br i1 %42, label %pred.store.if177, label %pred.store.continue178

pred.store.if177:                                 ; preds = %pred.store.continue176
  %43 = or disjoint i64 %index167, 4
  %44 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %43
  store i8 87, ptr %44, align 1, !tbaa !14
  br label %pred.store.continue178

pred.store.continue178:                           ; preds = %pred.store.if177, %pred.store.continue176
  %45 = extractelement <16 x i1> %30, i64 5
  br i1 %45, label %pred.store.if179, label %pred.store.continue180

pred.store.if179:                                 ; preds = %pred.store.continue178
  %46 = or disjoint i64 %index167, 5
  %47 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %46
  store i8 66, ptr %47, align 1, !tbaa !14
  br label %pred.store.continue180

pred.store.continue180:                           ; preds = %pred.store.if179, %pred.store.continue178
  %48 = extractelement <16 x i1> %30, i64 6
  br i1 %48, label %pred.store.if181, label %pred.store.continue182

pred.store.if181:                                 ; preds = %pred.store.continue180
  %49 = or disjoint i64 %index167, 6
  %50 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %49
  store i8 87, ptr %50, align 1, !tbaa !14
  br label %pred.store.continue182

pred.store.continue182:                           ; preds = %pred.store.if181, %pred.store.continue180
  %51 = extractelement <16 x i1> %30, i64 7
  br i1 %51, label %pred.store.if183, label %pred.store.continue184

pred.store.if183:                                 ; preds = %pred.store.continue182
  %52 = or disjoint i64 %index167, 7
  %53 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %52
  store i8 66, ptr %53, align 1, !tbaa !14
  br label %pred.store.continue184

pred.store.continue184:                           ; preds = %pred.store.if183, %pred.store.continue182
  %54 = extractelement <16 x i1> %30, i64 8
  br i1 %54, label %pred.store.if185, label %pred.store.continue186

pred.store.if185:                                 ; preds = %pred.store.continue184
  %55 = or disjoint i64 %index167, 8
  %56 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %55
  store i8 87, ptr %56, align 1, !tbaa !14
  br label %pred.store.continue186

pred.store.continue186:                           ; preds = %pred.store.if185, %pred.store.continue184
  %57 = extractelement <16 x i1> %30, i64 9
  br i1 %57, label %pred.store.if187, label %pred.store.continue188

pred.store.if187:                                 ; preds = %pred.store.continue186
  %58 = or disjoint i64 %index167, 9
  %59 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %58
  store i8 66, ptr %59, align 1, !tbaa !14
  br label %pred.store.continue188

pred.store.continue188:                           ; preds = %pred.store.if187, %pred.store.continue186
  %60 = extractelement <16 x i1> %30, i64 10
  br i1 %60, label %pred.store.if189, label %pred.store.continue190

pred.store.if189:                                 ; preds = %pred.store.continue188
  %61 = or disjoint i64 %index167, 10
  %62 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %61
  store i8 87, ptr %62, align 1, !tbaa !14
  br label %pred.store.continue190

pred.store.continue190:                           ; preds = %pred.store.if189, %pred.store.continue188
  %63 = extractelement <16 x i1> %30, i64 11
  br i1 %63, label %pred.store.if191, label %pred.store.continue192

pred.store.if191:                                 ; preds = %pred.store.continue190
  %64 = or disjoint i64 %index167, 11
  %65 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %64
  store i8 66, ptr %65, align 1, !tbaa !14
  br label %pred.store.continue192

pred.store.continue192:                           ; preds = %pred.store.if191, %pred.store.continue190
  %66 = extractelement <16 x i1> %30, i64 12
  br i1 %66, label %pred.store.if193, label %pred.store.continue194

pred.store.if193:                                 ; preds = %pred.store.continue192
  %67 = or disjoint i64 %index167, 12
  %68 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %67
  store i8 87, ptr %68, align 1, !tbaa !14
  br label %pred.store.continue194

pred.store.continue194:                           ; preds = %pred.store.if193, %pred.store.continue192
  %69 = extractelement <16 x i1> %30, i64 13
  br i1 %69, label %pred.store.if195, label %pred.store.continue196

pred.store.if195:                                 ; preds = %pred.store.continue194
  %70 = or disjoint i64 %index167, 13
  %71 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %70
  store i8 66, ptr %71, align 1, !tbaa !14
  br label %pred.store.continue196

pred.store.continue196:                           ; preds = %pred.store.if195, %pred.store.continue194
  %72 = extractelement <16 x i1> %30, i64 14
  br i1 %72, label %pred.store.if197, label %pred.store.continue198

pred.store.if197:                                 ; preds = %pred.store.continue196
  %73 = or disjoint i64 %index167, 14
  %74 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %73
  store i8 87, ptr %74, align 1, !tbaa !14
  br label %pred.store.continue198

pred.store.continue198:                           ; preds = %pred.store.if197, %pred.store.continue196
  %75 = extractelement <16 x i1> %30, i64 15
  br i1 %75, label %pred.store.if199, label %pred.store.continue200

pred.store.if199:                                 ; preds = %pred.store.continue198
  %76 = or disjoint i64 %index167, 15
  %77 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %76
  store i8 66, ptr %77, align 1, !tbaa !14
  br label %pred.store.continue200

pred.store.continue200:                           ; preds = %pred.store.if199, %pred.store.continue198
  %index.next201 = add nuw i64 %index167, 16
  %78 = icmp eq i64 %index.next201, %n.vec165
  br i1 %78, label %middle.block157, label %vector.body166, !llvm.loop !15

middle.block157:                                  ; preds = %pred.store.continue200
  br i1 %cmp.n202, label %.loopexit, label %vec.epilog.iter.check206

vec.epilog.iter.check206:                         ; preds = %middle.block157
  br i1 %min.epilog.iters.check208.not.not, label %.lr.ph51.preheader, label %vec.epilog.ph205

.lr.ph51.preheader:                               ; preds = %vec.epilog.middle.block203, %iter.check160, %vec.epilog.iter.check206
  %indvars.iv71.ph = phi i64 [ 0, %iter.check160 ], [ %n.vec165, %vec.epilog.iter.check206 ], [ %n.vec211, %vec.epilog.middle.block203 ]
  br label %.lr.ph51

vec.epilog.ph205:                                 ; preds = %vector.main.loop.iter.check162, %vec.epilog.iter.check206
  %vec.epilog.resume.val209 = phi i64 [ %n.vec165, %vec.epilog.iter.check206 ], [ 0, %vector.main.loop.iter.check162 ]
  br label %vec.epilog.vector.body213

vec.epilog.vector.body213:                        ; preds = %pred.store.continue231, %vec.epilog.ph205
  %index214 = phi i64 [ %vec.epilog.resume.val209, %vec.epilog.ph205 ], [ %index.next232, %pred.store.continue231 ]
  %79 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %index214
  %wide.load215 = load <8 x i8>, ptr %79, align 1, !tbaa !14
  %80 = icmp ne <8 x i8> %wide.load215, <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>
  %81 = extractelement <8 x i1> %80, i64 0
  br i1 %81, label %pred.store.if216, label %pred.store.continue217

pred.store.if216:                                 ; preds = %vec.epilog.vector.body213
  %82 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %index214
  store i8 87, ptr %82, align 1, !tbaa !14
  br label %pred.store.continue217

pred.store.continue217:                           ; preds = %pred.store.if216, %vec.epilog.vector.body213
  %83 = extractelement <8 x i1> %80, i64 1
  br i1 %83, label %pred.store.if218, label %pred.store.continue219

pred.store.if218:                                 ; preds = %pred.store.continue217
  %84 = or disjoint i64 %index214, 1
  %85 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %84
  store i8 66, ptr %85, align 1, !tbaa !14
  br label %pred.store.continue219

pred.store.continue219:                           ; preds = %pred.store.if218, %pred.store.continue217
  %86 = extractelement <8 x i1> %80, i64 2
  br i1 %86, label %pred.store.if220, label %pred.store.continue221

pred.store.if220:                                 ; preds = %pred.store.continue219
  %87 = or disjoint i64 %index214, 2
  %88 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %87
  store i8 87, ptr %88, align 1, !tbaa !14
  br label %pred.store.continue221

pred.store.continue221:                           ; preds = %pred.store.if220, %pred.store.continue219
  %89 = extractelement <8 x i1> %80, i64 3
  br i1 %89, label %pred.store.if222, label %pred.store.continue223

pred.store.if222:                                 ; preds = %pred.store.continue221
  %90 = or disjoint i64 %index214, 3
  %91 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %90
  store i8 66, ptr %91, align 1, !tbaa !14
  br label %pred.store.continue223

pred.store.continue223:                           ; preds = %pred.store.if222, %pred.store.continue221
  %92 = extractelement <8 x i1> %80, i64 4
  br i1 %92, label %pred.store.if224, label %pred.store.continue225

pred.store.if224:                                 ; preds = %pred.store.continue223
  %93 = or disjoint i64 %index214, 4
  %94 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %93
  store i8 87, ptr %94, align 1, !tbaa !14
  br label %pred.store.continue225

pred.store.continue225:                           ; preds = %pred.store.if224, %pred.store.continue223
  %95 = extractelement <8 x i1> %80, i64 5
  br i1 %95, label %pred.store.if226, label %pred.store.continue227

pred.store.if226:                                 ; preds = %pred.store.continue225
  %96 = or disjoint i64 %index214, 5
  %97 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %96
  store i8 66, ptr %97, align 1, !tbaa !14
  br label %pred.store.continue227

pred.store.continue227:                           ; preds = %pred.store.if226, %pred.store.continue225
  %98 = extractelement <8 x i1> %80, i64 6
  br i1 %98, label %pred.store.if228, label %pred.store.continue229

pred.store.if228:                                 ; preds = %pred.store.continue227
  %99 = or disjoint i64 %index214, 6
  %100 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %99
  store i8 87, ptr %100, align 1, !tbaa !14
  br label %pred.store.continue229

pred.store.continue229:                           ; preds = %pred.store.if228, %pred.store.continue227
  %101 = extractelement <8 x i1> %80, i64 7
  br i1 %101, label %pred.store.if230, label %pred.store.continue231

pred.store.if230:                                 ; preds = %pred.store.continue229
  %102 = or disjoint i64 %index214, 7
  %103 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %102
  store i8 66, ptr %103, align 1, !tbaa !14
  br label %pred.store.continue231

pred.store.continue231:                           ; preds = %pred.store.if230, %pred.store.continue229
  %index.next232 = add nuw i64 %index214, 8
  %104 = icmp eq i64 %index.next232, %n.vec211
  br i1 %104, label %vec.epilog.middle.block203, label %vec.epilog.vector.body213, !llvm.loop !18

vec.epilog.middle.block203:                       ; preds = %pred.store.continue231
  br i1 %cmp.n233, label %.loopexit, label %.lr.ph51.preheader

.preheader40:                                     ; preds = %27
  br i1 %12, label %iter.check, label %.loopexit

iter.check:                                       ; preds = %.preheader40
  br i1 %min.iters.check, label %.lr.ph53.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %iter.check
  br i1 %min.iters.check104, label %vec.epilog.ph, label %vector.body

vector.body:                                      ; preds = %vector.main.loop.iter.check, %pred.store.continue134
  %index = phi i64 [ %index.next, %pred.store.continue134 ], [ 0, %vector.main.loop.iter.check ]
  %105 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %index
  %wide.load = load <16 x i8>, ptr %105, align 1, !tbaa !14
  %106 = icmp ne <16 x i8> %wide.load, <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>
  %107 = extractelement <16 x i1> %106, i64 0
  br i1 %107, label %pred.store.if, label %pred.store.continue

pred.store.if:                                    ; preds = %vector.body
  %108 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %index
  store i8 66, ptr %108, align 1, !tbaa !14
  br label %pred.store.continue

pred.store.continue:                              ; preds = %pred.store.if, %vector.body
  %109 = extractelement <16 x i1> %106, i64 1
  br i1 %109, label %pred.store.if105, label %pred.store.continue106

pred.store.if105:                                 ; preds = %pred.store.continue
  %110 = or disjoint i64 %index, 1
  %111 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %110
  store i8 87, ptr %111, align 1, !tbaa !14
  br label %pred.store.continue106

pred.store.continue106:                           ; preds = %pred.store.if105, %pred.store.continue
  %112 = extractelement <16 x i1> %106, i64 2
  br i1 %112, label %pred.store.if107, label %pred.store.continue108

pred.store.if107:                                 ; preds = %pred.store.continue106
  %113 = or disjoint i64 %index, 2
  %114 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %113
  store i8 66, ptr %114, align 1, !tbaa !14
  br label %pred.store.continue108

pred.store.continue108:                           ; preds = %pred.store.if107, %pred.store.continue106
  %115 = extractelement <16 x i1> %106, i64 3
  br i1 %115, label %pred.store.if109, label %pred.store.continue110

pred.store.if109:                                 ; preds = %pred.store.continue108
  %116 = or disjoint i64 %index, 3
  %117 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %116
  store i8 87, ptr %117, align 1, !tbaa !14
  br label %pred.store.continue110

pred.store.continue110:                           ; preds = %pred.store.if109, %pred.store.continue108
  %118 = extractelement <16 x i1> %106, i64 4
  br i1 %118, label %pred.store.if111, label %pred.store.continue112

pred.store.if111:                                 ; preds = %pred.store.continue110
  %119 = or disjoint i64 %index, 4
  %120 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %119
  store i8 66, ptr %120, align 1, !tbaa !14
  br label %pred.store.continue112

pred.store.continue112:                           ; preds = %pred.store.if111, %pred.store.continue110
  %121 = extractelement <16 x i1> %106, i64 5
  br i1 %121, label %pred.store.if113, label %pred.store.continue114

pred.store.if113:                                 ; preds = %pred.store.continue112
  %122 = or disjoint i64 %index, 5
  %123 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %122
  store i8 87, ptr %123, align 1, !tbaa !14
  br label %pred.store.continue114

pred.store.continue114:                           ; preds = %pred.store.if113, %pred.store.continue112
  %124 = extractelement <16 x i1> %106, i64 6
  br i1 %124, label %pred.store.if115, label %pred.store.continue116

pred.store.if115:                                 ; preds = %pred.store.continue114
  %125 = or disjoint i64 %index, 6
  %126 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %125
  store i8 66, ptr %126, align 1, !tbaa !14
  br label %pred.store.continue116

pred.store.continue116:                           ; preds = %pred.store.if115, %pred.store.continue114
  %127 = extractelement <16 x i1> %106, i64 7
  br i1 %127, label %pred.store.if117, label %pred.store.continue118

pred.store.if117:                                 ; preds = %pred.store.continue116
  %128 = or disjoint i64 %index, 7
  %129 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %128
  store i8 87, ptr %129, align 1, !tbaa !14
  br label %pred.store.continue118

pred.store.continue118:                           ; preds = %pred.store.if117, %pred.store.continue116
  %130 = extractelement <16 x i1> %106, i64 8
  br i1 %130, label %pred.store.if119, label %pred.store.continue120

pred.store.if119:                                 ; preds = %pred.store.continue118
  %131 = or disjoint i64 %index, 8
  %132 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %131
  store i8 66, ptr %132, align 1, !tbaa !14
  br label %pred.store.continue120

pred.store.continue120:                           ; preds = %pred.store.if119, %pred.store.continue118
  %133 = extractelement <16 x i1> %106, i64 9
  br i1 %133, label %pred.store.if121, label %pred.store.continue122

pred.store.if121:                                 ; preds = %pred.store.continue120
  %134 = or disjoint i64 %index, 9
  %135 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %134
  store i8 87, ptr %135, align 1, !tbaa !14
  br label %pred.store.continue122

pred.store.continue122:                           ; preds = %pred.store.if121, %pred.store.continue120
  %136 = extractelement <16 x i1> %106, i64 10
  br i1 %136, label %pred.store.if123, label %pred.store.continue124

pred.store.if123:                                 ; preds = %pred.store.continue122
  %137 = or disjoint i64 %index, 10
  %138 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %137
  store i8 66, ptr %138, align 1, !tbaa !14
  br label %pred.store.continue124

pred.store.continue124:                           ; preds = %pred.store.if123, %pred.store.continue122
  %139 = extractelement <16 x i1> %106, i64 11
  br i1 %139, label %pred.store.if125, label %pred.store.continue126

pred.store.if125:                                 ; preds = %pred.store.continue124
  %140 = or disjoint i64 %index, 11
  %141 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %140
  store i8 87, ptr %141, align 1, !tbaa !14
  br label %pred.store.continue126

pred.store.continue126:                           ; preds = %pred.store.if125, %pred.store.continue124
  %142 = extractelement <16 x i1> %106, i64 12
  br i1 %142, label %pred.store.if127, label %pred.store.continue128

pred.store.if127:                                 ; preds = %pred.store.continue126
  %143 = or disjoint i64 %index, 12
  %144 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %143
  store i8 66, ptr %144, align 1, !tbaa !14
  br label %pred.store.continue128

pred.store.continue128:                           ; preds = %pred.store.if127, %pred.store.continue126
  %145 = extractelement <16 x i1> %106, i64 13
  br i1 %145, label %pred.store.if129, label %pred.store.continue130

pred.store.if129:                                 ; preds = %pred.store.continue128
  %146 = or disjoint i64 %index, 13
  %147 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %146
  store i8 87, ptr %147, align 1, !tbaa !14
  br label %pred.store.continue130

pred.store.continue130:                           ; preds = %pred.store.if129, %pred.store.continue128
  %148 = extractelement <16 x i1> %106, i64 14
  br i1 %148, label %pred.store.if131, label %pred.store.continue132

pred.store.if131:                                 ; preds = %pred.store.continue130
  %149 = or disjoint i64 %index, 14
  %150 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %149
  store i8 66, ptr %150, align 1, !tbaa !14
  br label %pred.store.continue132

pred.store.continue132:                           ; preds = %pred.store.if131, %pred.store.continue130
  %151 = extractelement <16 x i1> %106, i64 15
  br i1 %151, label %pred.store.if133, label %pred.store.continue134

pred.store.if133:                                 ; preds = %pred.store.continue132
  %152 = or disjoint i64 %index, 15
  %153 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %152
  store i8 87, ptr %153, align 1, !tbaa !14
  br label %pred.store.continue134

pred.store.continue134:                           ; preds = %pred.store.if133, %pred.store.continue132
  %index.next = add nuw i64 %index, 16
  %154 = icmp eq i64 %index.next, %n.vec
  br i1 %154, label %middle.block, label %vector.body, !llvm.loop !19

middle.block:                                     ; preds = %pred.store.continue134
  br i1 %cmp.n, label %.loopexit, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block
  br i1 %min.epilog.iters.check.not.not, label %.lr.ph53.preheader, label %vec.epilog.ph

.lr.ph53.preheader:                               ; preds = %vec.epilog.middle.block, %iter.check, %vec.epilog.iter.check
  %indvars.iv74.ph = phi i64 [ 0, %iter.check ], [ %n.vec, %vec.epilog.iter.check ], [ %n.vec136, %vec.epilog.middle.block ]
  br label %.lr.ph53

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %vec.epilog.resume.val = phi i64 [ %n.vec, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %pred.store.continue154, %vec.epilog.ph
  %index137 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next155, %pred.store.continue154 ]
  %155 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %index137
  %wide.load138 = load <8 x i8>, ptr %155, align 1, !tbaa !14
  %156 = icmp ne <8 x i8> %wide.load138, <i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45, i8 45>
  %157 = extractelement <8 x i1> %156, i64 0
  br i1 %157, label %pred.store.if139, label %pred.store.continue140

pred.store.if139:                                 ; preds = %vec.epilog.vector.body
  %158 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %index137
  store i8 66, ptr %158, align 1, !tbaa !14
  br label %pred.store.continue140

pred.store.continue140:                           ; preds = %pred.store.if139, %vec.epilog.vector.body
  %159 = extractelement <8 x i1> %156, i64 1
  br i1 %159, label %pred.store.if141, label %pred.store.continue142

pred.store.if141:                                 ; preds = %pred.store.continue140
  %160 = or disjoint i64 %index137, 1
  %161 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %160
  store i8 87, ptr %161, align 1, !tbaa !14
  br label %pred.store.continue142

pred.store.continue142:                           ; preds = %pred.store.if141, %pred.store.continue140
  %162 = extractelement <8 x i1> %156, i64 2
  br i1 %162, label %pred.store.if143, label %pred.store.continue144

pred.store.if143:                                 ; preds = %pred.store.continue142
  %163 = or disjoint i64 %index137, 2
  %164 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %163
  store i8 66, ptr %164, align 1, !tbaa !14
  br label %pred.store.continue144

pred.store.continue144:                           ; preds = %pred.store.if143, %pred.store.continue142
  %165 = extractelement <8 x i1> %156, i64 3
  br i1 %165, label %pred.store.if145, label %pred.store.continue146

pred.store.if145:                                 ; preds = %pred.store.continue144
  %166 = or disjoint i64 %index137, 3
  %167 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %166
  store i8 87, ptr %167, align 1, !tbaa !14
  br label %pred.store.continue146

pred.store.continue146:                           ; preds = %pred.store.if145, %pred.store.continue144
  %168 = extractelement <8 x i1> %156, i64 4
  br i1 %168, label %pred.store.if147, label %pred.store.continue148

pred.store.if147:                                 ; preds = %pred.store.continue146
  %169 = or disjoint i64 %index137, 4
  %170 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %169
  store i8 66, ptr %170, align 1, !tbaa !14
  br label %pred.store.continue148

pred.store.continue148:                           ; preds = %pred.store.if147, %pred.store.continue146
  %171 = extractelement <8 x i1> %156, i64 5
  br i1 %171, label %pred.store.if149, label %pred.store.continue150

pred.store.if149:                                 ; preds = %pred.store.continue148
  %172 = or disjoint i64 %index137, 5
  %173 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %172
  store i8 87, ptr %173, align 1, !tbaa !14
  br label %pred.store.continue150

pred.store.continue150:                           ; preds = %pred.store.if149, %pred.store.continue148
  %174 = extractelement <8 x i1> %156, i64 6
  br i1 %174, label %pred.store.if151, label %pred.store.continue152

pred.store.if151:                                 ; preds = %pred.store.continue150
  %175 = or disjoint i64 %index137, 6
  %176 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %175
  store i8 66, ptr %176, align 1, !tbaa !14
  br label %pred.store.continue152

pred.store.continue152:                           ; preds = %pred.store.if151, %pred.store.continue150
  %177 = extractelement <8 x i1> %156, i64 7
  br i1 %177, label %pred.store.if153, label %pred.store.continue154

pred.store.if153:                                 ; preds = %pred.store.continue152
  %178 = or disjoint i64 %index137, 7
  %179 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %178
  store i8 87, ptr %179, align 1, !tbaa !14
  br label %pred.store.continue154

pred.store.continue154:                           ; preds = %pred.store.if153, %pred.store.continue152
  %index.next155 = add nuw i64 %index137, 8
  %180 = icmp eq i64 %index.next155, %n.vec136
  br i1 %180, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !20

vec.epilog.middle.block:                          ; preds = %pred.store.continue154
  br i1 %cmp.n156, label %.loopexit, label %.lr.ph53.preheader

.lr.ph51:                                         ; preds = %.lr.ph51.preheader, %185
  %indvars.iv71 = phi i64 [ %indvars.iv.next72, %185 ], [ %indvars.iv71.ph, %.lr.ph51.preheader ]
  %181 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %indvars.iv71
  %182 = load i8, ptr %181, align 1, !tbaa !14
  %183 = icmp eq i8 %182, 45
  br i1 %183, label %185, label %.sink.split

.sink.split:                                      ; preds = %.lr.ph51
  %184 = and i64 %indvars.iv71, 1
  %.not39 = icmp eq i64 %184, 0
  %. = select i1 %.not39, i8 87, i8 66
  store i8 %., ptr %181, align 1, !tbaa !14
  br label %185

185:                                              ; preds = %.sink.split, %.lr.ph51
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next72, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph51, !llvm.loop !21

.lr.ph53:                                         ; preds = %.lr.ph53.preheader, %190
  %indvars.iv74 = phi i64 [ %indvars.iv.next75, %190 ], [ %indvars.iv74.ph, %.lr.ph53.preheader ]
  %186 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv79, i64 %indvars.iv74
  %187 = load i8, ptr %186, align 1, !tbaa !14
  %188 = icmp eq i8 %187, 45
  br i1 %188, label %190, label %.sink.split97

.sink.split97:                                    ; preds = %.lr.ph53
  %189 = and i64 %indvars.iv74, 1
  %.not38 = icmp eq i64 %189, 0
  %.100 = select i1 %.not38, i8 66, i8 87
  store i8 %.100, ptr %186, align 1, !tbaa !14
  br label %190

190:                                              ; preds = %.sink.split97, %.lr.ph53
  %indvars.iv.next75 = add nuw nsw i64 %indvars.iv74, 1
  %exitcond78.not = icmp eq i64 %indvars.iv.next75, %wide.trip.count77
  br i1 %exitcond78.not, label %.loopexit, label %.lr.ph53, !llvm.loop !22

.loopexit:                                        ; preds = %185, %190, %middle.block157, %vec.epilog.middle.block203, %middle.block, %vec.epilog.middle.block, %.preheader41, %.preheader40
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %exitcond83.not = icmp eq i64 %indvars.iv.next80, %wide.trip.count82
  br i1 %exitcond83.not, label %.preheader44, label %27, !llvm.loop !23

.preheader:                                       ; preds = %.preheader44, %._crit_edge59
  %191 = phi i32 [ %208, %._crit_edge59 ], [ %11, %.preheader44 ]
  %192 = phi i32 [ %209, %._crit_edge59 ], [ %25, %.preheader44 ]
  %indvars.iv87 = phi i64 [ %indvars.iv.next88, %._crit_edge59 ], [ 0, %.preheader44 ]
  %193 = icmp sgt i32 %192, 0
  br i1 %193, label %.lr.ph58, label %._crit_edge59

.lr.ph58:                                         ; preds = %.preheader, %204
  %indvars.iv84 = phi i64 [ %indvars.iv.next85, %204 ], [ 0, %.preheader ]
  %194 = getelementptr inbounds [105 x [105 x i8]], ptr @str, i64 0, i64 %indvars.iv87, i64 %indvars.iv84
  %195 = load i8, ptr %194, align 1, !tbaa !14
  %196 = sext i8 %195 to i32
  %197 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %196)
  %198 = load i32, ptr %2, align 4, !tbaa !7
  %199 = add nsw i32 %198, -1
  %200 = zext i32 %199 to i64
  %201 = icmp eq i64 %indvars.iv84, %200
  br i1 %201, label %202, label %204

202:                                              ; preds = %.lr.ph58
  %203 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %.pre90 = load i32, ptr %2, align 4, !tbaa !7
  br label %204

204:                                              ; preds = %.lr.ph58, %202
  %205 = phi i32 [ %198, %.lr.ph58 ], [ %.pre90, %202 ]
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %206 = sext i32 %205 to i64
  %207 = icmp slt i64 %indvars.iv.next85, %206
  br i1 %207, label %.lr.ph58, label %._crit_edge59.loopexit, !llvm.loop !24

._crit_edge59.loopexit:                           ; preds = %204
  %.pre91 = load i32, ptr %1, align 4, !tbaa !7
  br label %._crit_edge59

._crit_edge59:                                    ; preds = %._crit_edge59.loopexit, %.preheader
  %208 = phi i32 [ %.pre91, %._crit_edge59.loopexit ], [ %191, %.preheader ]
  %209 = phi i32 [ %205, %._crit_edge59.loopexit ], [ %192, %.preheader ]
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %210 = sext i32 %208 to i64
  %211 = icmp slt i64 %indvars.iv.next88, %210
  br i1 %211, label %.preheader, label %.loopexit45, !llvm.loop !25

._crit_edge62:                                    ; preds = %.loopexit45, %0
  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
}

; 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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

; 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 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 = { 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 = { "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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = distinct !{!11, !6}
!12 = distinct !{!12, !6, !13}
!13 = !{!"llvm.loop.unswitch.partial.disable"}
!14 = !{!9, !9, i64 0}
!15 = distinct !{!15, !6, !16, !17}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = distinct !{!18, !6, !16, !17}
!19 = distinct !{!19, !6, !16, !17}
!20 = distinct !{!20, !6, !16, !17}
!21 = distinct !{!21, !6, !17, !16}
!22 = distinct !{!22, !6, !17, !16}
!23 = distinct !{!23, !6}
!24 = distinct !{!24, !6}
!25 = distinct !{!25, !6, !13}


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