; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/254 Division 2/Problem A (A)

; 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" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@grid = external dso_local global [100 x [100 x i32]], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %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
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %61, %0
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = load i32, ptr @n, align 4, !tbaa !5
  %16 = icmp slt i32 %14, %15
  br i1 %16, label %18, label %17

17:                                               ; preds = %13
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %65

18:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  %19 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %20 unwind label %26

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

21:                                               ; preds = %57, %20
  %22 = load i32, ptr %7, align 4, !tbaa !5
  %23 = load i32, ptr @m, align 4, !tbaa !5
  %24 = icmp slt i32 %22, %23
  br i1 %24, label %30, label %25

25:                                               ; preds = %21
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %60

26:                                               ; preds = %18
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %5, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %6, align 4
  br label %64

30:                                               ; preds = %21
  %31 = load i32, ptr %7, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %32)
          to label %34 unwind label %45

34:                                               ; preds = %30
  %35 = load i8, ptr %33, align 1, !tbaa !9
  %36 = sext i8 %35 to i32
  %37 = icmp eq i32 %36, 46
  br i1 %37, label %38, label %49

38:                                               ; preds = %34
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %40
  %42 = load i32, ptr %7, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [100 x i32], ptr %41, i64 0, i64 %43
  store i32 1, ptr %44, align 4, !tbaa !5
  br label %56

45:                                               ; preds = %30
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %5, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %64

49:                                               ; preds = %34
  %50 = load i32, ptr %2, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %51
  %53 = load i32, ptr %7, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [100 x i32], ptr %52, i64 0, i64 %54
  store i32 2, ptr %55, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %49, %38
  br label %57

57:                                               ; preds = %56
  %58 = load i32, ptr %7, align 4, !tbaa !5
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %7, align 4, !tbaa !5
  br label %21, !llvm.loop !10

60:                                               ; preds = %25
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #5
  br label %61

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

64:                                               ; preds = %45, %26
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %184

65:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %134, %65
  %67 = load i32, ptr %8, align 4, !tbaa !5
  %68 = load i32, ptr @n, align 4, !tbaa !5
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %66
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %137

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

72:                                               ; preds = %130, %71
  %73 = load i32, ptr %9, align 4, !tbaa !5
  %74 = load i32, ptr @m, align 4, !tbaa !5
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %77, label %76

76:                                               ; preds = %72
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %133

77:                                               ; preds = %72
  %78 = load i32, ptr %8, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %79
  %81 = load i32, ptr %9, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [100 x i32], ptr %80, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = icmp eq i32 %84, 1
  br i1 %85, label %86, label %129

86:                                               ; preds = %77
  %87 = load i32, ptr %8, align 4, !tbaa !5
  %88 = srem i32 %87, 2
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %109

90:                                               ; preds = %86
  %91 = load i32, ptr %9, align 4, !tbaa !5
  %92 = srem i32 %91, 2
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %101

94:                                               ; preds = %90
  %95 = load i32, ptr %8, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %96
  %98 = load i32, ptr %9, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [100 x i32], ptr %97, i64 0, i64 %99
  store i32 3, ptr %100, align 4, !tbaa !5
  br label %108

101:                                              ; preds = %90
  %102 = load i32, ptr %8, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %103
  %105 = load i32, ptr %9, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [100 x i32], ptr %104, i64 0, i64 %106
  store i32 4, ptr %107, align 4, !tbaa !5
  br label %108

108:                                              ; preds = %101, %94
  br label %128

109:                                              ; preds = %86
  %110 = load i32, ptr %9, align 4, !tbaa !5
  %111 = srem i32 %110, 2
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %120

113:                                              ; preds = %109
  %114 = load i32, ptr %8, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %115
  %117 = load i32, ptr %9, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [100 x i32], ptr %116, i64 0, i64 %118
  store i32 4, ptr %119, align 4, !tbaa !5
  br label %127

120:                                              ; preds = %109
  %121 = load i32, ptr %8, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %122
  %124 = load i32, ptr %9, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [100 x i32], ptr %123, i64 0, i64 %125
  store i32 3, ptr %126, align 4, !tbaa !5
  br label %127

127:                                              ; preds = %120, %113
  br label %128

128:                                              ; preds = %127, %108
  br label %129

129:                                              ; preds = %128, %77
  br label %130

130:                                              ; preds = %129
  %131 = load i32, ptr %9, align 4, !tbaa !5
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %9, align 4, !tbaa !5
  br label %72, !llvm.loop !13

133:                                              ; preds = %76
  br label %134

134:                                              ; preds = %133
  %135 = load i32, ptr %8, align 4, !tbaa !5
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %8, align 4, !tbaa !5
  br label %66, !llvm.loop !14

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

138:                                              ; preds = %180, %137
  %139 = load i32, ptr %10, align 4, !tbaa !5
  %140 = load i32, ptr @n, align 4, !tbaa !5
  %141 = icmp slt i32 %139, %140
  br i1 %141, label %143, label %142

142:                                              ; preds = %138
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %183

143:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %144

144:                                              ; preds = %175, %143
  %145 = load i32, ptr %11, align 4, !tbaa !5
  %146 = load i32, ptr @m, align 4, !tbaa !5
  %147 = icmp slt i32 %145, %146
  br i1 %147, label %149, label %148

148:                                              ; preds = %144
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %178

149:                                              ; preds = %144
  %150 = load i32, ptr %10, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %151
  %153 = load i32, ptr %11, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [100 x i32], ptr %152, i64 0, i64 %154
  %156 = load i32, ptr %155, align 4, !tbaa !5
  %157 = icmp eq i32 %156, 2
  br i1 %157, label %158, label %160

158:                                              ; preds = %149
  %159 = 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)
  br label %174

160:                                              ; preds = %149
  %161 = load i32, ptr %10, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %162
  %164 = load i32, ptr %11, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [100 x i32], ptr %163, i64 0, i64 %165
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = icmp eq i32 %167, 3
  br i1 %168, label %169, label %171

169:                                              ; preds = %160
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  br label %173

171:                                              ; preds = %160
  %172 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
  br label %173

173:                                              ; preds = %171, %169
  br label %174

174:                                              ; preds = %173, %158
  br label %175

175:                                              ; preds = %174
  %176 = load i32, ptr %11, align 4, !tbaa !5
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %11, align 4, !tbaa !5
  br label %144, !llvm.loop !15

178:                                              ; preds = %148
  %179 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  br label %180

180:                                              ; preds = %178
  %181 = load i32, ptr %10, align 4, !tbaa !5
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %10, align 4, !tbaa !5
  br label %138, !llvm.loop !16

183:                                              ; preds = %142
  ret i32 0

184:                                              ; preds = %64
  %185 = load ptr, ptr %5, align 8
  %186 = load i32, ptr %6, align 4
  %187 = insertvalue { ptr, i32 } poison, ptr %185, 0
  %188 = insertvalue { ptr, i32 } %187, i32 %186, 1
  resume { ptr, i32 } %188
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; 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) #4

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"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" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@grid = external dso_local local_unnamed_addr global [100 x [100 x i32]], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = 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 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %3 = load i32, ptr @n, align 4, !tbaa !5
  %4 = icmp sgt i32 %3, 0
  br i1 %4, label %.lr.ph51, label %._crit_edge63

.preheader45:                                     ; preds = %._crit_edge
  %5 = icmp sgt i32 %78, 0
  br i1 %5, label %.preheader44.lr.ph, label %._crit_edge63

.preheader44.lr.ph:                               ; preds = %.preheader45
  %6 = load i32, ptr @m, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.preheader44.us.preheader, label %.preheader.preheader

.preheader44.us.preheader:                        ; preds = %.preheader44.lr.ph
  %wide.trip.count82 = zext nneg i32 %78 to i64
  %wide.trip.count = zext nneg i32 %6 to i64
  %wide.trip.count77 = zext nneg i32 %6 to i64
  %min.iters.check = icmp ult i32 %6, 8
  %n.vec119 = and i64 %wide.trip.count, 2147483640
  %cmp.n142 = icmp eq i64 %n.vec119, %wide.trip.count
  %n.vec = and i64 %wide.trip.count, 2147483640
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br label %.preheader44.us

.preheader44.us:                                  ; preds = %.preheader44.us.preheader, %._crit_edge54.us
  %indvars.iv79 = phi i64 [ 0, %.preheader44.us.preheader ], [ %indvars.iv.next80, %._crit_edge54.us ]
  %8 = and i64 %indvars.iv79, 1
  %.not.us = icmp eq i64 %8, 0
  br i1 %.not.us, label %.lr.ph53.split.us.us.preheader, label %.lr.ph53.split.us58.preheader

.lr.ph53.split.us58.preheader:                    ; preds = %.preheader44.us
  br i1 %min.iters.check, label %.lr.ph53.split.us58.preheader144, label %vector.body121

.lr.ph53.split.us58.preheader144:                 ; preds = %middle.block114, %.lr.ph53.split.us58.preheader
  %indvars.iv71.ph = phi i64 [ 0, %.lr.ph53.split.us58.preheader ], [ %n.vec119, %middle.block114 ]
  br label %.lr.ph53.split.us58

vector.body121:                                   ; preds = %.lr.ph53.split.us58.preheader, %pred.store.continue140
  %index122 = phi i64 [ %index.next141, %pred.store.continue140 ], [ 0, %.lr.ph53.split.us58.preheader ]
  %9 = or disjoint i64 %index122, 4
  %10 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %indvars.iv79, i64 %index122
  %11 = getelementptr inbounds i8, ptr %10, i64 16
  %wide.load123 = load <4 x i32>, ptr %10, align 16, !tbaa !5
  %wide.load124 = load <4 x i32>, ptr %11, align 16, !tbaa !5
  %12 = icmp eq <4 x i32> %wide.load123, <i32 1, i32 1, i32 1, i32 1>
  %13 = icmp eq <4 x i32> %wide.load124, <i32 1, i32 1, i32 1, i32 1>
  %14 = extractelement <4 x i1> %12, i64 0
  br i1 %14, label %pred.store.if125, label %pred.store.continue126

pred.store.if125:                                 ; preds = %vector.body121
  %15 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %indvars.iv79, i64 %index122
  store i32 4, ptr %15, align 16, !tbaa !5
  br label %pred.store.continue126

pred.store.continue126:                           ; preds = %pred.store.if125, %vector.body121
  %16 = extractelement <4 x i1> %12, i64 1
  br i1 %16, label %pred.store.if127, label %pred.store.continue128

pred.store.if127:                                 ; preds = %pred.store.continue126
  %17 = or disjoint i64 %index122, 1
  %18 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %indvars.iv79, i64 %17
  store i32 3, ptr %18, align 4, !tbaa !5
  br label %pred.store.continue128

pred.store.continue128:                           ; preds = %pred.store.if127, %pred.store.continue126
  %19 = extractelement <4 x i1> %12, i64 2
  br i1 %19, label %pred.store.if129, label %pred.store.continue130

pred.store.if129:                                 ; preds = %pred.store.continue128
  %20 = or disjoint i64 %index122, 2
  %21 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %indvars.iv79, i64 %20
  store i32 4, ptr %21, align 8, !tbaa !5
  br label %pred.store.continue130

pred.store.continue130:                           ; preds = %pred.store.if129, %pred.store.continue128
  %22 = extractelement <4 x i1> %12, i64 3
  br i1 %22, label %pred.store.if131, label %pred.store.continue132

pred.store.if131:                                 ; preds = %pred.store.continue130
  %23 = or disjoint i64 %index122, 3
  %24 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %indvars.iv79, i64 %23
  store i32 3, ptr %24, align 4, !tbaa !5
  br label %pred.store.continue132

pred.store.continue132:                           ; preds = %pred.store.if131, %pred.store.continue130
  %25 = extractelement <4 x i1> %13, i64 0
  br i1 %25, label %pred.store.if133, label %pred.store.continue134

pred.store.if133:                                 ; preds = %pred.store.continue132
  %26 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %indvars.iv79, i64 %9
  store i32 4, ptr %26, align 16, !tbaa !5
  br label %pred.store.continue134

pred.store.continue134:                           ; preds = %pred.store.if133, %pred.store.continue132
  %27 = extractelement <4 x i1> %13, i64 1
  br i1 %27, label %pred.store.if135, label %pred.store.continue136

pred.store.if135:                                 ; preds = %pred.store.continue134
  %28 = or disjoint i64 %index122, 5
  %29 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %indvars.iv79, i64 %28
  store i32 3, ptr %29, align 4, !tbaa !5
  br label %pred.store.continue136

pred.store.continue136:                           ; preds = %pred.store.if135, %pred.store.continue134
  %30 = extractelement <4 x i1> %13, i64 2
  br i1 %30, label %pred.store.if137, label %pred.store.continue138

pred.store.if137:                                 ; preds = %pred.store.continue136
  %31 = or disjoint i64 %index122, 6
  %32 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %indvars.iv79, i64 %31
  store i32 4, ptr %32, align 8, !tbaa !5
  br label %pred.store.continue138

pred.store.continue138:                           ; preds = %pred.store.if137, %pred.store.continue136
  %33 = extractelement <4 x i1> %13, i64 3
  br i1 %33, label %pred.store.if139, label %pred.store.continue140

pred.store.if139:                                 ; preds = %pred.store.continue138
  %34 = or disjoint i64 %index122, 7
  %35 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %indvars.iv79, i64 %34
  store i32 3, ptr %35, align 4, !tbaa !5
  br label %pred.store.continue140

pred.store.continue140:                           ; preds = %pred.store.if139, %pred.store.continue138
  %index.next141 = add nuw i64 %index122, 8
  %36 = icmp eq i64 %index.next141, %n.vec119
  br i1 %36, label %middle.block114, label %vector.body121, !llvm.loop !9

middle.block114:                                  ; preds = %pred.store.continue140
  br i1 %cmp.n142, label %._crit_edge54.us, label %.lr.ph53.split.us58.preheader144

.lr.ph53.split.us.us.preheader:                   ; preds = %.preheader44.us
  br i1 %min.iters.check, label %.lr.ph53.split.us.us.preheader143, label %vector.body

.lr.ph53.split.us.us.preheader143:                ; preds = %middle.block, %.lr.ph53.split.us.us.preheader
  %indvars.iv74.ph = phi i64 [ 0, %.lr.ph53.split.us.us.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph53.split.us.us

vector.body:                                      ; preds = %.lr.ph53.split.us.us.preheader, %pred.store.continue113
  %index = phi i64 [ %index.next, %pred.store.continue113 ], [ 0, %.lr.ph53.split.us.us.preheader ]
  %37 = or disjoint i64 %index, 4
  %38 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %indvars.iv79, i64 %index
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  %wide.load = load <4 x i32>, ptr %38, align 16, !tbaa !5
  %wide.load99 = load <4 x i32>, ptr %39, align 16, !tbaa !5
  %40 = icmp eq <4 x i32> %wide.load, <i32 1, i32 1, i32 1, i32 1>
  %41 = icmp eq <4 x i32> %wide.load99, <i32 1, i32 1, i32 1, i32 1>
  %42 = extractelement <4 x i1> %40, i64 0
  br i1 %42, label %pred.store.if, label %pred.store.continue

pred.store.if:                                    ; preds = %vector.body
  %43 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %indvars.iv79, i64 %index
  store i32 3, ptr %43, align 16, !tbaa !5
  br label %pred.store.continue

pred.store.continue:                              ; preds = %pred.store.if, %vector.body
  %44 = extractelement <4 x i1> %40, i64 1
  br i1 %44, label %pred.store.if100, label %pred.store.continue101

pred.store.if100:                                 ; preds = %pred.store.continue
  %45 = or disjoint i64 %index, 1
  %46 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %indvars.iv79, i64 %45
  store i32 4, ptr %46, align 4, !tbaa !5
  br label %pred.store.continue101

pred.store.continue101:                           ; preds = %pred.store.if100, %pred.store.continue
  %47 = extractelement <4 x i1> %40, i64 2
  br i1 %47, label %pred.store.if102, label %pred.store.continue103

pred.store.if102:                                 ; preds = %pred.store.continue101
  %48 = or disjoint i64 %index, 2
  %49 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %indvars.iv79, i64 %48
  store i32 3, ptr %49, align 8, !tbaa !5
  br label %pred.store.continue103

pred.store.continue103:                           ; preds = %pred.store.if102, %pred.store.continue101
  %50 = extractelement <4 x i1> %40, i64 3
  br i1 %50, label %pred.store.if104, label %pred.store.continue105

pred.store.if104:                                 ; preds = %pred.store.continue103
  %51 = or disjoint i64 %index, 3
  %52 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %indvars.iv79, i64 %51
  store i32 4, ptr %52, align 4, !tbaa !5
  br label %pred.store.continue105

pred.store.continue105:                           ; preds = %pred.store.if104, %pred.store.continue103
  %53 = extractelement <4 x i1> %41, i64 0
  br i1 %53, label %pred.store.if106, label %pred.store.continue107

pred.store.if106:                                 ; preds = %pred.store.continue105
  %54 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %indvars.iv79, i64 %37
  store i32 3, ptr %54, align 16, !tbaa !5
  br label %pred.store.continue107

pred.store.continue107:                           ; preds = %pred.store.if106, %pred.store.continue105
  %55 = extractelement <4 x i1> %41, i64 1
  br i1 %55, label %pred.store.if108, label %pred.store.continue109

pred.store.if108:                                 ; preds = %pred.store.continue107
  %56 = or disjoint i64 %index, 5
  %57 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %indvars.iv79, i64 %56
  store i32 4, ptr %57, align 4, !tbaa !5
  br label %pred.store.continue109

pred.store.continue109:                           ; preds = %pred.store.if108, %pred.store.continue107
  %58 = extractelement <4 x i1> %41, i64 2
  br i1 %58, label %pred.store.if110, label %pred.store.continue111

pred.store.if110:                                 ; preds = %pred.store.continue109
  %59 = or disjoint i64 %index, 6
  %60 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %indvars.iv79, i64 %59
  store i32 3, ptr %60, align 8, !tbaa !5
  br label %pred.store.continue111

pred.store.continue111:                           ; preds = %pred.store.if110, %pred.store.continue109
  %61 = extractelement <4 x i1> %41, i64 3
  br i1 %61, label %pred.store.if112, label %pred.store.continue113

pred.store.if112:                                 ; preds = %pred.store.continue111
  %62 = or disjoint i64 %index, 7
  %63 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %indvars.iv79, i64 %62
  store i32 4, ptr %63, align 4, !tbaa !5
  br label %pred.store.continue113

pred.store.continue113:                           ; preds = %pred.store.if112, %pred.store.continue111
  %index.next = add nuw i64 %index, 8
  %64 = icmp eq i64 %index.next, %n.vec
  br i1 %64, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %pred.store.continue113
  br i1 %cmp.n, label %._crit_edge54.us, label %.lr.ph53.split.us.us.preheader143

.lr.ph53.split.us58:                              ; preds = %.lr.ph53.split.us58.preheader144, %69
  %indvars.iv71 = phi i64 [ %indvars.iv.next72, %69 ], [ %indvars.iv71.ph, %.lr.ph53.split.us58.preheader144 ]
  %65 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %indvars.iv79, i64 %indvars.iv71
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = icmp eq i32 %66, 1
  br i1 %67, label %.sink.split, label %69

.sink.split:                                      ; preds = %.lr.ph53.split.us58
  %68 = and i64 %indvars.iv71, 1
  %.not42.us = icmp eq i64 %68, 0
  %. = select i1 %.not42.us, i32 4, i32 3
  store i32 %., ptr %65, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %.sink.split, %.lr.ph53.split.us58
  %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 %._crit_edge54.us, label %.lr.ph53.split.us58, !llvm.loop !14

._crit_edge54.us:                                 ; preds = %69, %74, %middle.block114, %middle.block
  %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 %.preheader43, label %.preheader44.us, !llvm.loop !15

.lr.ph53.split.us.us:                             ; preds = %.lr.ph53.split.us.us.preheader143, %74
  %indvars.iv74 = phi i64 [ %indvars.iv.next75, %74 ], [ %indvars.iv74.ph, %.lr.ph53.split.us.us.preheader143 ]
  %70 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %indvars.iv79, i64 %indvars.iv74
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = icmp eq i32 %71, 1
  br i1 %72, label %.sink.split93, label %74

.sink.split93:                                    ; preds = %.lr.ph53.split.us.us
  %73 = and i64 %indvars.iv74, 1
  %.not41.us.us = icmp eq i64 %73, 0
  %.95 = select i1 %.not41.us.us, i32 3, i32 4
  store i32 %.95, ptr %70, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %.sink.split93, %.lr.ph53.split.us.us
  %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 %._crit_edge54.us, label %.lr.ph53.split.us.us, !llvm.loop !16

.lr.ph51:                                         ; preds = %0, %._crit_edge
  %indvars.iv68 = phi i64 [ %indvars.iv.next69, %._crit_edge ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  %75 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %.preheader46 unwind label %81

.preheader46:                                     ; preds = %.lr.ph51
  %76 = load i32, ptr @m, align 4, !tbaa !5
  %77 = icmp sgt i32 %76, 0
  br i1 %77, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.preheader46
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #6
  %indvars.iv.next69 = add nuw nsw i64 %indvars.iv68, 1
  %78 = load i32, ptr @n, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = icmp slt i64 %indvars.iv.next69, %79
  br i1 %80, label %.lr.ph51, label %.preheader45, !llvm.loop !17

81:                                               ; preds = %.lr.ph51
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #6
  resume { ptr, i32 } %82

.lr.ph:                                           ; preds = %.preheader46, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader46 ]
  %83 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv)
  %84 = load i8, ptr %83, align 1, !tbaa !18
  %85 = icmp eq i8 %84, 46
  %spec.select = select i1 %85, i32 1, i32 2
  %86 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %indvars.iv68, i64 %indvars.iv
  store i32 %spec.select, ptr %86, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %87 = load i32, ptr @m, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = icmp slt i64 %indvars.iv.next, %88
  br i1 %89, label %.lr.ph, label %._crit_edge, !llvm.loop !19

.preheader43:                                     ; preds = %._crit_edge54.us
  br i1 %5, label %.preheader.preheader, label %._crit_edge63

.preheader.preheader:                             ; preds = %.preheader44.lr.ph, %.preheader43
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge61
  %indvars.iv87 = phi i64 [ %indvars.iv.next88, %._crit_edge61 ], [ 0, %.preheader.preheader ]
  %90 = load i32, ptr @m, align 4, !tbaa !5
  %91 = icmp sgt i32 %90, 0
  br i1 %91, label %.lr.ph60, label %._crit_edge61

._crit_edge63:                                    ; preds = %._crit_edge61, %0, %.preheader45, %.preheader43
  ret i32 0

._crit_edge61:                                    ; preds = %.lr.ph60, %.preheader
  %92 = 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.4)
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %93 = load i32, ptr @n, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = icmp slt i64 %indvars.iv.next88, %94
  br i1 %95, label %.preheader, label %._crit_edge63, !llvm.loop !20

.lr.ph60:                                         ; preds = %.preheader, %.lr.ph60
  %indvars.iv84 = phi i64 [ %indvars.iv.next85, %.lr.ph60 ], [ 0, %.preheader ]
  %96 = getelementptr inbounds [100 x [100 x i32]], ptr @grid, i64 0, i64 %indvars.iv87, i64 %indvars.iv84
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %switch.selectcmp = icmp eq i32 %97, 3
  %switch.select = select i1 %switch.selectcmp, ptr @.str.2, ptr @.str.3
  %switch.selectcmp96 = icmp eq i32 %97, 2
  %switch.select97 = select i1 %switch.selectcmp96, ptr @.str.1, ptr %switch.select
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %switch.select97)
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %99 = load i32, ptr @m, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = icmp slt i64 %indvars.iv.next85, %100
  br i1 %101, label %.lr.ph60, label %._crit_edge61, !llvm.loop !21
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

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


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