; LLVM IR from kazunetakahashi/atcoder :: 201510_201609/1115_codefes2015_relay (I)

; 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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 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 [210 x i32], align 16
  %4 = alloca [210 x i32], align 16
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca [210 x i32], align 16
  %11 = alloca i32, align 4
  %12 = alloca [100010 x i8], align 16
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 840, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 840, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %31, %0
  %18 = load i32, ptr %5, align 4, !tbaa !5
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %34

22:                                               ; preds = %17
  %23 = load i32, ptr %5, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [210 x i32], ptr %3, i64 0, i64 %24
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %25)
  %27 = load i32, ptr %5, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [210 x i32], ptr %4, i64 0, i64 %28
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 4 dereferenceable(4) %29)
  br label %31

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

34:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %35

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

39:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %56

40:                                               ; preds = %35
  %41 = load i32, ptr %8, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [210 x i32], ptr %3, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = load i32, ptr %6, align 4, !tbaa !5
  %46 = add nsw i32 %45, %44
  store i32 %46, ptr %6, align 4, !tbaa !5
  %47 = load i32, ptr %8, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [210 x i32], ptr %4, i64 0, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = load i32, ptr %7, align 4, !tbaa !5
  %52 = add nsw i32 %51, %50
  store i32 %52, ptr %7, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %40
  %54 = load i32, ptr %8, align 4, !tbaa !5
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %8, align 4, !tbaa !5
  br label %35, !llvm.loop !11

56:                                               ; preds = %39
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = load i32, ptr %7, align 4, !tbaa !5
  %59 = icmp ne i32 %57, %58
  br i1 %59, label %60, label %63

60:                                               ; preds = %56
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  br label %153

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

64:                                               ; preds = %82, %63
  %65 = load i32, ptr %11, align 4, !tbaa !5
  %66 = load i32, ptr %2, align 4, !tbaa !5
  %67 = icmp slt i32 %65, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %64
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %85

69:                                               ; preds = %64
  %70 = load i32, ptr %11, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [210 x i32], ptr %3, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = load i32, ptr %11, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [210 x i32], ptr %4, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = add nsw i32 %73, %77
  %79 = load i32, ptr %11, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [210 x i32], ptr %10, i64 0, i64 %80
  store i32 %78, ptr %81, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %69
  %83 = load i32, ptr %11, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %11, align 4, !tbaa !5
  br label %64, !llvm.loop !12

85:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 100010, ptr %12) #5
  %86 = getelementptr inbounds [100010 x i8], ptr %12, i64 0, i64 0
  %87 = getelementptr inbounds [100010 x i8], ptr %12, i64 0, i64 0
  %88 = getelementptr inbounds i8, ptr %87, i64 100010
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  store i8 0, ptr %13, align 1, !tbaa !13
  call void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef %86, ptr noundef %88, ptr noundef nonnull align 1 dereferenceable(1) %13)
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  %89 = getelementptr inbounds [100010 x i8], ptr %12, i64 0, i64 0
  store i8 1, ptr %89, align 16, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %144, %85
  %91 = load i32, ptr %14, align 4, !tbaa !5
  %92 = load i32, ptr %2, align 4, !tbaa !5
  %93 = icmp slt i32 %91, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %90
  store i32 11, ptr %9, align 4
  br label %147

95:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %96 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %96, ptr %15, align 4, !tbaa !5
  br label %97

97:                                               ; preds = %138, %95
  %98 = load i32, ptr %15, align 4, !tbaa !5
  %99 = icmp sge i32 %98, 0
  br i1 %99, label %101, label %100

100:                                              ; preds = %97
  store i32 14, ptr %9, align 4
  br label %141

101:                                              ; preds = %97
  %102 = load i32, ptr %15, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [100010 x i8], ptr %12, i64 0, i64 %103
  %105 = load i8, ptr %104, align 1, !tbaa !13, !range !15, !noundef !16
  %106 = trunc i8 %105 to i1
  br i1 %106, label %107, label %137

107:                                              ; preds = %101
  %108 = load i32, ptr %15, align 4, !tbaa !5
  %109 = load i32, ptr %14, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [210 x i32], ptr %10, i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = add nsw i32 %108, %112
  %114 = load i32, ptr %6, align 4, !tbaa !5
  %115 = icmp sle i32 %113, %114
  br i1 %115, label %116, label %137

116:                                              ; preds = %107
  %117 = load i32, ptr %15, align 4, !tbaa !5
  %118 = load i32, ptr %14, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [210 x i32], ptr %10, i64 0, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = add nsw i32 %117, %121
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [100010 x i8], ptr %12, i64 0, i64 %123
  store i8 1, ptr %124, align 1, !tbaa !13
  %125 = load i32, ptr %15, align 4, !tbaa !5
  %126 = load i32, ptr %14, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [210 x i32], ptr %10, i64 0, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = add nsw i32 %125, %129
  %131 = load i32, ptr %6, align 4, !tbaa !5
  %132 = icmp eq i32 %130, %131
  br i1 %132, label %133, label %136

133:                                              ; preds = %116
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %134, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  br label %141

136:                                              ; preds = %116
  br label %137

137:                                              ; preds = %136, %107, %101
  br label %138

138:                                              ; preds = %137
  %139 = load i32, ptr %15, align 4, !tbaa !5
  %140 = add nsw i32 %139, -1
  store i32 %140, ptr %15, align 4, !tbaa !5
  br label %97, !llvm.loop !17

141:                                              ; preds = %133, %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  %142 = load i32, ptr %9, align 4
  switch i32 %142, label %147 [
    i32 14, label %143
  ]

143:                                              ; preds = %141
  br label %144

144:                                              ; preds = %143
  %145 = load i32, ptr %14, align 4, !tbaa !5
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %14, align 4, !tbaa !5
  br label %90, !llvm.loop !18

147:                                              ; preds = %141, %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  %148 = load i32, ptr %9, align 4
  switch i32 %148, label %152 [
    i32 11, label %149
  ]

149:                                              ; preds = %147
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %151 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %150, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  br label %152

152:                                              ; preds = %149, %147
  call void @llvm.lifetime.end.p0(i64 100010, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 840, ptr %10) #5
  br label %153

153:                                              ; preds = %152, %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 840, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 840, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %154 = load i32, ptr %1, align 4
  ret i32 %154
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) #3

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 = { 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 = { 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 #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 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 [210 x i32], align 16
  %3 = alloca [210 x i32], align 16
  %4 = alloca [210 x i32], align 16
  %5 = alloca [100010 x i8], align 16
  %6 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  %7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.start.p0(i64 840, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 840, ptr nonnull %3) #6
  %8 = load i32, ptr %1, align 4, !tbaa !5
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph, label %.thread

.preheader49:                                     ; preds = %.lr.ph
  %10 = icmp sgt i32 %26, 0
  br i1 %10, label %.lr.ph54.preheader, label %.thread

.lr.ph54.preheader:                               ; preds = %.preheader49
  %wide.trip.count = zext nneg i32 %26 to i64
  %min.iters.check = icmp ult i32 %26, 8
  br i1 %min.iters.check, label %.lr.ph54.preheader127, label %vector.ph

.lr.ph54.preheader127:                            ; preds = %middle.block, %.lr.ph54.preheader
  %indvars.iv70.ph = phi i64 [ 0, %.lr.ph54.preheader ], [ %n.vec, %middle.block ]
  %.03952.ph = phi i32 [ 0, %.lr.ph54.preheader ], [ %20, %middle.block ]
  %.04051.ph = phi i32 [ 0, %.lr.ph54.preheader ], [ %21, %middle.block ]
  br label %.lr.ph54

vector.ph:                                        ; preds = %.lr.ph54.preheader
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %17, %vector.body ]
  %vec.phi102 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %18, %vector.body ]
  %vec.phi103 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %13, %vector.body ]
  %vec.phi104 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %14, %vector.body ]
  %11 = getelementptr inbounds [210 x i32], ptr %2, i64 0, i64 %index
  %12 = getelementptr inbounds i8, ptr %11, i64 16
  %wide.load = load <4 x i32>, ptr %11, align 16, !tbaa !5
  %wide.load105 = load <4 x i32>, ptr %12, align 16, !tbaa !5
  %13 = add <4 x i32> %wide.load, %vec.phi103
  %14 = add <4 x i32> %wide.load105, %vec.phi104
  %15 = getelementptr inbounds [210 x i32], ptr %3, i64 0, i64 %index
  %16 = getelementptr inbounds i8, ptr %15, i64 16
  %wide.load106 = load <4 x i32>, ptr %15, align 16, !tbaa !5
  %wide.load107 = load <4 x i32>, ptr %16, align 16, !tbaa !5
  %17 = add <4 x i32> %wide.load106, %vec.phi
  %18 = add <4 x i32> %wide.load107, %vec.phi102
  %index.next = add nuw i64 %index, 8
  %19 = icmp eq i64 %index.next, %n.vec
  br i1 %19, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %18, %17
  %20 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %bin.rdx108 = add <4 x i32> %14, %13
  %21 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx108)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph54.preheader127

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %22 = getelementptr inbounds [210 x i32], ptr %2, i64 0, i64 %indvars.iv
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %24 = getelementptr inbounds [210 x i32], ptr %3, i64 0, i64 %indvars.iv
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 4 dereferenceable(4) %24)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %26 = load i32, ptr %1, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = icmp slt i64 %indvars.iv.next, %27
  br i1 %28, label %.lr.ph, label %.preheader49, !llvm.loop !13

.thread:                                          ; preds = %0, %.preheader49
  call void @llvm.lifetime.start.p0(i64 840, ptr nonnull %4) #6
  br label %._crit_edge60

._crit_edge:                                      ; preds = %.lr.ph54, %middle.block
  %.lcssa100 = phi i32 [ %21, %middle.block ], [ %31, %.lr.ph54 ]
  %.lcssa = phi i32 [ %20, %middle.block ], [ %34, %.lr.ph54 ]
  %.not = icmp eq i32 %.lcssa100, %.lcssa
  br i1 %.not, label %38, label %35

.lr.ph54:                                         ; preds = %.lr.ph54.preheader127, %.lr.ph54
  %indvars.iv70 = phi i64 [ %indvars.iv.next71, %.lr.ph54 ], [ %indvars.iv70.ph, %.lr.ph54.preheader127 ]
  %.03952 = phi i32 [ %34, %.lr.ph54 ], [ %.03952.ph, %.lr.ph54.preheader127 ]
  %.04051 = phi i32 [ %31, %.lr.ph54 ], [ %.04051.ph, %.lr.ph54.preheader127 ]
  %29 = getelementptr inbounds [210 x i32], ptr %2, i64 0, i64 %indvars.iv70
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = add nsw i32 %30, %.04051
  %32 = getelementptr inbounds [210 x i32], ptr %3, i64 0, i64 %indvars.iv70
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = add nsw i32 %33, %.03952
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next71, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph54, !llvm.loop !14

35:                                               ; preds = %._crit_edge
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %75

38:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 840, ptr nonnull %4) #6
  br i1 %10, label %.lr.ph59.preheader, label %._crit_edge60

.lr.ph59.preheader:                               ; preds = %38
  %wide.trip.count76 = zext nneg i32 %26 to i64
  %min.iters.check112 = icmp ult i32 %26, 8
  br i1 %min.iters.check112, label %.lr.ph59.preheader126, label %vector.ph113

.lr.ph59.preheader126:                            ; preds = %middle.block110, %.lr.ph59.preheader
  %indvars.iv73.ph = phi i64 [ 0, %.lr.ph59.preheader ], [ %n.vec115, %middle.block110 ]
  br label %.lr.ph59

vector.ph113:                                     ; preds = %.lr.ph59.preheader
  %n.vec115 = and i64 %wide.trip.count, 2147483640
  br label %vector.body117

vector.body117:                                   ; preds = %vector.body117, %vector.ph113
  %index118 = phi i64 [ 0, %vector.ph113 ], [ %index.next123, %vector.body117 ]
  %39 = getelementptr inbounds [210 x i32], ptr %2, i64 0, i64 %index118
  %40 = getelementptr inbounds i8, ptr %39, i64 16
  %wide.load119 = load <4 x i32>, ptr %39, align 16, !tbaa !5
  %wide.load120 = load <4 x i32>, ptr %40, align 16, !tbaa !5
  %41 = getelementptr inbounds [210 x i32], ptr %3, i64 0, i64 %index118
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  %wide.load121 = load <4 x i32>, ptr %41, align 16, !tbaa !5
  %wide.load122 = load <4 x i32>, ptr %42, align 16, !tbaa !5
  %43 = add nsw <4 x i32> %wide.load121, %wide.load119
  %44 = add nsw <4 x i32> %wide.load122, %wide.load120
  %45 = getelementptr inbounds [210 x i32], ptr %4, i64 0, i64 %index118
  %46 = getelementptr inbounds i8, ptr %45, i64 16
  store <4 x i32> %43, ptr %45, align 16, !tbaa !5
  store <4 x i32> %44, ptr %46, align 16, !tbaa !5
  %index.next123 = add nuw i64 %index118, 8
  %47 = icmp eq i64 %index.next123, %n.vec115
  br i1 %47, label %middle.block110, label %vector.body117, !llvm.loop !15

middle.block110:                                  ; preds = %vector.body117
  %cmp.n124 = icmp eq i64 %n.vec115, %wide.trip.count
  br i1 %cmp.n124, label %._crit_edge60, label %.lr.ph59.preheader126

._crit_edge60:                                    ; preds = %.lr.ph59, %middle.block110, %.thread, %38
  %.040.lcssa9396 = phi i32 [ 0, %.thread ], [ %.lcssa100, %38 ], [ %.lcssa100, %middle.block110 ], [ %.lcssa100, %.lr.ph59 ]
  call void @llvm.lifetime.start.p0(i64 100010, ptr nonnull %5) #6
  %48 = getelementptr inbounds i8, ptr %5, i64 100010
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  store i8 0, ptr %6, align 1, !tbaa !16
  call void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef nonnull %5, ptr noundef nonnull %48, ptr noundef nonnull align 1 dereferenceable(1) %6)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  store i8 1, ptr %5, align 16, !tbaa !16
  %49 = load i32, ptr %1, align 4, !tbaa !5
  %.not4663 = icmp slt i32 %49, 1
  %50 = icmp slt i32 %.040.lcssa9396, 0
  %or.cond = or i1 %.not4663, %50
  br i1 %or.cond, label %.critedge48, label %.preheader.preheader

.preheader.preheader:                             ; preds = %._crit_edge60
  %51 = zext nneg i32 %.040.lcssa9396 to i64
  %wide.trip.count84 = zext nneg i32 %49 to i64
  br label %.preheader

.lr.ph59:                                         ; preds = %.lr.ph59.preheader126, %.lr.ph59
  %indvars.iv73 = phi i64 [ %indvars.iv.next74, %.lr.ph59 ], [ %indvars.iv73.ph, %.lr.ph59.preheader126 ]
  %52 = getelementptr inbounds [210 x i32], ptr %2, i64 0, i64 %indvars.iv73
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = getelementptr inbounds [210 x i32], ptr %3, i64 0, i64 %indvars.iv73
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = add nsw i32 %55, %53
  %57 = getelementptr inbounds [210 x i32], ptr %4, i64 0, i64 %indvars.iv73
  store i32 %56, ptr %57, align 4, !tbaa !5
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
  %exitcond77.not = icmp eq i64 %indvars.iv.next74, %wide.trip.count76
  br i1 %exitcond77.not, label %._crit_edge60, label %.lr.ph59, !llvm.loop !18

.preheader:                                       ; preds = %.preheader.preheader, %..critedge_crit_edge
  %indvars.iv81 = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next82, %..critedge_crit_edge ]
  %58 = getelementptr inbounds [210 x i32], ptr %4, i64 0, i64 %indvars.iv81
  br label %59

59:                                               ; preds = %.preheader, %71
  %indvars.iv78 = phi i64 [ %51, %.preheader ], [ %indvars.iv.next79, %71 ]
  %60 = getelementptr inbounds [100010 x i8], ptr %5, i64 0, i64 %indvars.iv78
  %61 = load i8, ptr %60, align 1, !tbaa !16, !range !19, !noundef !20
  %62 = trunc nuw i8 %61 to i1
  br i1 %62, label %63, label %71

63:                                               ; preds = %59
  %64 = load i32, ptr %58, align 4, !tbaa !5
  %65 = trunc nuw nsw i64 %indvars.iv78 to i32
  %66 = add nsw i32 %64, %65
  %.not45 = icmp sgt i32 %66, %.040.lcssa9396
  br i1 %.not45, label %71, label %67

67:                                               ; preds = %63
  %68 = sext i32 %66 to i64
  %69 = getelementptr inbounds [100010 x i8], ptr %5, i64 0, i64 %68
  store i8 1, ptr %69, align 1, !tbaa !16
  %70 = icmp eq i32 %66, %.040.lcssa9396
  br i1 %70, label %.critedge48, label %71

71:                                               ; preds = %59, %63, %67
  %indvars.iv.next79 = add nsw i64 %indvars.iv78, -1
  %72 = icmp slt i64 %indvars.iv78, 1
  br i1 %72, label %..critedge_crit_edge, label %59, !llvm.loop !21

..critedge_crit_edge:                             ; preds = %71
  %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1
  %exitcond85.not = icmp eq i64 %indvars.iv.next82, %wide.trip.count84
  br i1 %exitcond85.not, label %.critedge48, label %.preheader, !llvm.loop !22

.critedge48:                                      ; preds = %..critedge_crit_edge, %67, %._crit_edge60
  %.str.1.sink = phi ptr [ @.str, %._crit_edge60 ], [ @.str.1, %67 ], [ @.str, %..critedge_crit_edge ]
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %.str.1.sink)
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 100010, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 840, ptr nonnull %4) #6
  br label %75

75:                                               ; preds = %.critedge48, %35
  call void @llvm.lifetime.end.p0(i64 840, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 840, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) 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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #5

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 = { "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 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10, !12, !11}
!15 = distinct !{!15, !10, !11, !12}
!16 = !{!17, !17, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = distinct !{!18, !10, !12, !11}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}


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