; LLVM IR from upupming/algorithm :: CCCC-GPLT/L3-005. 垃圾箱分布 (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 }
%"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
@k = external dso_local global i32, align 4
@ds = external dso_local global i32, align 4
@e = external dso_local global [1020 x [1020 x i32]], align 16
@dis = external dso_local global [1020 x i32], align 16
@visit = external dso_local global [1020 x i8], align 16
@_ZL3inf = external hidden constant i32, align 4
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 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 %"class.std::__cxx11::basic_string", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i8, align 1
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef @e, ptr noundef getelementptr inbounds (i32, ptr @e, i64 1040400), ptr noundef nonnull align 4 dereferenceable(4) @_ZL3inf)
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef @dis, ptr noundef getelementptr inbounds (i32, ptr @dis, i64 1020), ptr noundef nonnull align 4 dereferenceable(4) @_ZL3inf)
  %26 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m, ptr noundef @k, ptr noundef @ds)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %101, %0
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = load i32, ptr @k, align 4, !tbaa !5
  %30 = icmp slt i32 %28, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %106

32:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  %33 = 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 %34 unwind label %51

34:                                               ; preds = %32
  %35 = 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) %33, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %36 unwind label %51

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %38 unwind label %51

38:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %39 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef 0)
          to label %40 unwind label %55

40:                                               ; preds = %38
  %41 = load i8, ptr %39, align 1, !tbaa !9
  %42 = sext i8 %41 to i32
  %43 = icmp eq i32 %42, 71
  br i1 %43, label %44, label %63

44:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #7
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef 1, i64 noundef -1)
          to label %45 unwind label %59

45:                                               ; preds = %44
  %46 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  %47 = load i32, ptr @n, align 4, !tbaa !5
  %48 = invoke noundef i32 @_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef null, i32 noundef 10)
          to label %49 unwind label %55

49:                                               ; preds = %45
  %50 = add nsw i32 %47, %48
  store i32 %50, ptr %8, align 4, !tbaa !5
  br label %66

51:                                               ; preds = %36, %34, %32
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %6, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %7, align 4
  br label %105

55:                                               ; preds = %83, %73, %66, %63, %45, %38
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %6, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %7, align 4
  br label %104

59:                                               ; preds = %44
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %6, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  br label %104

63:                                               ; preds = %40
  %64 = invoke noundef i32 @_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef null, i32 noundef 10)
          to label %65 unwind label %55

65:                                               ; preds = %63
  store i32 %64, ptr %8, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %65, %49
  %67 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef 0)
          to label %68 unwind label %55

68:                                               ; preds = %66
  %69 = load i8, ptr %67, align 1, !tbaa !9
  %70 = sext i8 %69 to i32
  %71 = icmp eq i32 %70, 71
  br i1 %71, label %72, label %83

72:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #7
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef 1, i64 noundef -1)
          to label %73 unwind label %79

73:                                               ; preds = %72
  %74 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  %75 = load i32, ptr @n, align 4, !tbaa !5
  %76 = invoke noundef i32 @_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef null, i32 noundef 10)
          to label %77 unwind label %55

77:                                               ; preds = %73
  %78 = add nsw i32 %75, %76
  store i32 %78, ptr %9, align 4, !tbaa !5
  br label %86

79:                                               ; preds = %72
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %6, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  br label %104

83:                                               ; preds = %68
  %84 = invoke noundef i32 @_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef null, i32 noundef 10)
          to label %85 unwind label %55

85:                                               ; preds = %83
  store i32 %84, ptr %9, align 4, !tbaa !5
  br label %86

86:                                               ; preds = %85, %77
  %87 = load i32, ptr %3, align 4, !tbaa !5
  %88 = load i32, ptr %8, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [1020 x [1020 x i32]], ptr @e, i64 0, i64 %89
  %91 = load i32, ptr %9, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [1020 x i32], ptr %90, i64 0, i64 %92
  store i32 %87, ptr %93, align 4, !tbaa !5
  %94 = load i32, ptr %3, align 4, !tbaa !5
  %95 = load i32, ptr %9, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [1020 x [1020 x i32]], ptr @e, i64 0, i64 %96
  %98 = load i32, ptr %8, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [1020 x i32], ptr %97, i64 0, i64 %99
  store i32 %94, ptr %100, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %101

101:                                              ; preds = %86
  %102 = load i32, ptr %2, align 4, !tbaa !5
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %2, align 4, !tbaa !5
  br label %27, !llvm.loop !10

104:                                              ; preds = %79, %59, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %105

105:                                              ; preds = %104, %51
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %319

106:                                              ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 -1, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store double -1.000000e+00, ptr %13, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store double 0x41CDCD64FF800000, ptr %14, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %107 = load i32, ptr @n, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %15, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %301, %106
  %110 = load i32, ptr %15, align 4, !tbaa !5
  %111 = load i32, ptr @n, align 4, !tbaa !5
  %112 = load i32, ptr @m, align 4, !tbaa !5
  %113 = add nsw i32 %111, %112
  %114 = icmp sle i32 %110, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %109
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %304

116:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store double 0x41CDCD64FF800000, ptr %17, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  store double 0.000000e+00, ptr %18, align 8, !tbaa !12
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef @dis, ptr noundef getelementptr inbounds (i32, ptr @dis, i64 1020), ptr noundef nonnull align 4 dereferenceable(4) @_ZL3inf)
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  store i8 0, ptr %19, align 1, !tbaa !14
  call void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef @visit, ptr noundef getelementptr inbounds (i8, ptr @visit, i64 1020), ptr noundef nonnull align 1 dereferenceable(1) %19)
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  %117 = load i32, ptr %15, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [1020 x i32], ptr @dis, i64 0, i64 %118
  store i32 0, ptr %119, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %225, %116
  %121 = load i32, ptr %20, align 4, !tbaa !5
  %122 = load i32, ptr @n, align 4, !tbaa !5
  %123 = load i32, ptr @m, align 4, !tbaa !5
  %124 = add nsw i32 %122, %123
  %125 = icmp slt i32 %121, %124
  br i1 %125, label %127, label %126

126:                                              ; preds = %120
  store i32 8, ptr %16, align 4
  br label %228

127:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 -1, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 999999999, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 1, ptr %23, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %157, %127
  %129 = load i32, ptr %23, align 4, !tbaa !5
  %130 = load i32, ptr @n, align 4, !tbaa !5
  %131 = load i32, ptr @m, align 4, !tbaa !5
  %132 = add nsw i32 %130, %131
  %133 = icmp sle i32 %129, %132
  br i1 %133, label %135, label %134

134:                                              ; preds = %128
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %160

135:                                              ; preds = %128
  %136 = load i32, ptr %23, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [1020 x i8], ptr @visit, i64 0, i64 %137
  %139 = load i8, ptr %138, align 1, !tbaa !14, !range !16, !noundef !17
  %140 = trunc i8 %139 to i1
  %141 = zext i1 %140 to i32
  %142 = icmp eq i32 %141, 0
  br i1 %142, label %143, label %156

143:                                              ; preds = %135
  %144 = load i32, ptr %23, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [1020 x i32], ptr @dis, i64 0, i64 %145
  %147 = load i32, ptr %146, align 4, !tbaa !5
  %148 = load i32, ptr %22, align 4, !tbaa !5
  %149 = icmp slt i32 %147, %148
  br i1 %149, label %150, label %156

150:                                              ; preds = %143
  %151 = load i32, ptr %23, align 4, !tbaa !5
  store i32 %151, ptr %21, align 4, !tbaa !5
  %152 = load i32, ptr %23, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [1020 x i32], ptr @dis, i64 0, i64 %153
  %155 = load i32, ptr %154, align 4, !tbaa !5
  store i32 %155, ptr %22, align 4, !tbaa !5
  br label %156

156:                                              ; preds = %150, %143, %135
  br label %157

157:                                              ; preds = %156
  %158 = load i32, ptr %23, align 4, !tbaa !5
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %23, align 4, !tbaa !5
  br label %128, !llvm.loop !18

160:                                              ; preds = %134
  %161 = load i32, ptr %21, align 4, !tbaa !5
  %162 = icmp eq i32 %161, -1
  br i1 %162, label %163, label %164

163:                                              ; preds = %160
  store i32 8, ptr %16, align 4
  br label %222

164:                                              ; preds = %160
  %165 = load i32, ptr %21, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [1020 x i8], ptr @visit, i64 0, i64 %166
  store i8 1, ptr %167, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 1, ptr %24, align 4, !tbaa !5
  br label %168

168:                                              ; preds = %218, %164
  %169 = load i32, ptr %24, align 4, !tbaa !5
  %170 = load i32, ptr @n, align 4, !tbaa !5
  %171 = load i32, ptr @m, align 4, !tbaa !5
  %172 = add nsw i32 %170, %171
  %173 = icmp sle i32 %169, %172
  br i1 %173, label %175, label %174

174:                                              ; preds = %168
  store i32 14, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %221

175:                                              ; preds = %168
  %176 = load i32, ptr %24, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [1020 x i8], ptr @visit, i64 0, i64 %177
  %179 = load i8, ptr %178, align 1, !tbaa !14, !range !16, !noundef !17
  %180 = trunc i8 %179 to i1
  %181 = zext i1 %180 to i32
  %182 = icmp eq i32 %181, 0
  br i1 %182, label %183, label %217

183:                                              ; preds = %175
  %184 = load i32, ptr %24, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [1020 x i32], ptr @dis, i64 0, i64 %185
  %187 = load i32, ptr %186, align 4, !tbaa !5
  %188 = load i32, ptr %21, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [1020 x i32], ptr @dis, i64 0, i64 %189
  %191 = load i32, ptr %190, align 4, !tbaa !5
  %192 = load i32, ptr %21, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [1020 x [1020 x i32]], ptr @e, i64 0, i64 %193
  %195 = load i32, ptr %24, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [1020 x i32], ptr %194, i64 0, i64 %196
  %198 = load i32, ptr %197, align 4, !tbaa !5
  %199 = add nsw i32 %191, %198
  %200 = icmp sgt i32 %187, %199
  br i1 %200, label %201, label %217

201:                                              ; preds = %183
  %202 = load i32, ptr %21, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [1020 x i32], ptr @dis, i64 0, i64 %203
  %205 = load i32, ptr %204, align 4, !tbaa !5
  %206 = load i32, ptr %21, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [1020 x [1020 x i32]], ptr @e, i64 0, i64 %207
  %209 = load i32, ptr %24, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [1020 x i32], ptr %208, i64 0, i64 %210
  %212 = load i32, ptr %211, align 4, !tbaa !5
  %213 = add nsw i32 %205, %212
  %214 = load i32, ptr %24, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [1020 x i32], ptr @dis, i64 0, i64 %215
  store i32 %213, ptr %216, align 4, !tbaa !5
  br label %217

217:                                              ; preds = %201, %183, %175
  br label %218

218:                                              ; preds = %217
  %219 = load i32, ptr %24, align 4, !tbaa !5
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %24, align 4, !tbaa !5
  br label %168, !llvm.loop !19

221:                                              ; preds = %174
  store i32 0, ptr %16, align 4
  br label %222

222:                                              ; preds = %221, %163
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  %223 = load i32, ptr %16, align 4
  switch i32 %223, label %228 [
    i32 0, label %224
  ]

224:                                              ; preds = %222
  br label %225

225:                                              ; preds = %224
  %226 = load i32, ptr %20, align 4, !tbaa !5
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %20, align 4, !tbaa !5
  br label %120, !llvm.loop !20

228:                                              ; preds = %222, %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %229

229:                                              ; preds = %228
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 1, ptr %25, align 4, !tbaa !5
  br label %230

230:                                              ; preds = %265, %229
  %231 = load i32, ptr %25, align 4, !tbaa !5
  %232 = load i32, ptr @n, align 4, !tbaa !5
  %233 = icmp sle i32 %231, %232
  br i1 %233, label %235, label %234

234:                                              ; preds = %230
  store i32 17, ptr %16, align 4
  br label %268

235:                                              ; preds = %230
  %236 = load i32, ptr %25, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [1020 x i32], ptr @dis, i64 0, i64 %237
  %239 = load i32, ptr %238, align 4, !tbaa !5
  %240 = load i32, ptr @ds, align 4, !tbaa !5
  %241 = icmp sgt i32 %239, %240
  br i1 %241, label %242, label %243

242:                                              ; preds = %235
  store double -1.000000e+00, ptr %17, align 8, !tbaa !12
  store i32 17, ptr %16, align 4
  br label %268

243:                                              ; preds = %235
  %244 = load i32, ptr %25, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [1020 x i32], ptr @dis, i64 0, i64 %245
  %247 = load i32, ptr %246, align 4, !tbaa !5
  %248 = sitofp i32 %247 to double
  %249 = load double, ptr %17, align 8, !tbaa !12
  %250 = fcmp olt double %248, %249
  br i1 %250, label %251, label %257

251:                                              ; preds = %243
  %252 = load i32, ptr %25, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [1020 x i32], ptr @dis, i64 0, i64 %253
  %255 = load i32, ptr %254, align 4, !tbaa !5
  %256 = sitofp i32 %255 to double
  store double %256, ptr %17, align 8, !tbaa !12
  br label %257

257:                                              ; preds = %251, %243
  %258 = load i32, ptr %25, align 4, !tbaa !5
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [1020 x i32], ptr @dis, i64 0, i64 %259
  %261 = load i32, ptr %260, align 4, !tbaa !5
  %262 = sitofp i32 %261 to double
  %263 = load double, ptr %18, align 8, !tbaa !12
  %264 = call double @llvm.fmuladd.f64(double 1.000000e+00, double %262, double %263)
  store double %264, ptr %18, align 8, !tbaa !12
  br label %265

265:                                              ; preds = %257
  %266 = load i32, ptr %25, align 4, !tbaa !5
  %267 = add nsw i32 %266, 1
  store i32 %267, ptr %25, align 4, !tbaa !5
  br label %230, !llvm.loop !21

268:                                              ; preds = %242, %234
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %269

269:                                              ; preds = %268
  %270 = load double, ptr %17, align 8, !tbaa !12
  %271 = fcmp oeq double %270, -1.000000e+00
  br i1 %271, label %272, label %273

272:                                              ; preds = %269
  store i32 7, ptr %16, align 4
  br label %298

273:                                              ; preds = %269
  %274 = load double, ptr %18, align 8, !tbaa !12
  %275 = load i32, ptr @n, align 4, !tbaa !5
  %276 = sitofp i32 %275 to double
  %277 = fdiv double %274, %276
  store double %277, ptr %18, align 8, !tbaa !12
  %278 = load double, ptr %17, align 8, !tbaa !12
  %279 = load double, ptr %13, align 8, !tbaa !12
  %280 = fcmp ogt double %278, %279
  br i1 %280, label %281, label %285

281:                                              ; preds = %273
  %282 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %282, ptr %12, align 4, !tbaa !5
  %283 = load double, ptr %17, align 8, !tbaa !12
  store double %283, ptr %13, align 8, !tbaa !12
  %284 = load double, ptr %18, align 8, !tbaa !12
  store double %284, ptr %14, align 8, !tbaa !12
  br label %297

285:                                              ; preds = %273
  %286 = load double, ptr %17, align 8, !tbaa !12
  %287 = load double, ptr %13, align 8, !tbaa !12
  %288 = fcmp oeq double %286, %287
  br i1 %288, label %289, label %296

289:                                              ; preds = %285
  %290 = load double, ptr %18, align 8, !tbaa !12
  %291 = load double, ptr %14, align 8, !tbaa !12
  %292 = fcmp olt double %290, %291
  br i1 %292, label %293, label %296

293:                                              ; preds = %289
  %294 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %294, ptr %12, align 4, !tbaa !5
  %295 = load double, ptr %18, align 8, !tbaa !12
  store double %295, ptr %14, align 8, !tbaa !12
  br label %296

296:                                              ; preds = %293, %289, %285
  br label %297

297:                                              ; preds = %296, %281
  store i32 0, ptr %16, align 4
  br label %298

298:                                              ; preds = %297, %272
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  %299 = load i32, ptr %16, align 4
  switch i32 %299, label %324 [
    i32 0, label %300
    i32 7, label %301
  ]

300:                                              ; preds = %298
  br label %301

301:                                              ; preds = %300, %298
  %302 = load i32, ptr %15, align 4, !tbaa !5
  %303 = add nsw i32 %302, 1
  store i32 %303, ptr %15, align 4, !tbaa !5
  br label %109, !llvm.loop !22

304:                                              ; preds = %115
  %305 = load i32, ptr %12, align 4, !tbaa !5
  %306 = icmp eq i32 %305, -1
  br i1 %306, label %307, label %309

307:                                              ; preds = %304
  %308 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %317

309:                                              ; preds = %304
  %310 = load i32, ptr %12, align 4, !tbaa !5
  %311 = load i32, ptr @n, align 4, !tbaa !5
  %312 = sub nsw i32 %310, %311
  %313 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %312)
  %314 = load double, ptr %13, align 8, !tbaa !12
  %315 = load double, ptr %14, align 8, !tbaa !12
  %316 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %314, double noundef %315)
  br label %317

317:                                              ; preds = %309, %307
  store i32 0, ptr %1, align 4
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  %318 = load i32, ptr %1, align 4
  ret i32 %318

319:                                              ; preds = %105
  %320 = load ptr, ptr %6, align 8
  %321 = load i32, ptr %7, align 4
  %322 = insertvalue { ptr, i32 } poison, ptr %320, 0
  %323 = insertvalue { ptr, i32 } %322, i32 %321, 1
  resume { ptr, i32 } %323

324:                                              ; preds = %298
  unreachable
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 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)) #2

declare i32 @__gxx_personality_v0(...)

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: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef) #5 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef) #1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #6

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

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 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !11}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !11}
!21 = distinct !{!21, !11}
!22 = distinct !{!22, !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::__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
@k = external dso_local global i32, align 4
@ds = external dso_local global i32, align 4
@e = external dso_local global [1020 x [1020 x i32]], align 16
@dis = external dso_local global [1020 x i32], align 16
@visit = external dso_local global [1020 x i8], align 16
@_ZL3inf = external hidden constant i32, align 4
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 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 i32, align 4
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca i8, align 1
  tail call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull @e, ptr noundef nonnull getelementptr inbounds (i8, ptr @e, i64 4161600), ptr noundef nonnull align 4 dereferenceable(4) @_ZL3inf)
  tail call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull @dis, ptr noundef nonnull getelementptr inbounds (i8, ptr @dis, i64 4080), ptr noundef nonnull align 4 dereferenceable(4) @_ZL3inf)
  %7 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @k, ptr noundef nonnull @ds)
  %8 = load i32, ptr @k, align 4, !tbaa !5
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %52, %0
  %10 = load i32, ptr @m, align 4, !tbaa !5
  %.not.not126 = icmp sgt i32 %10, 0
  br i1 %.not.not126, label %.lr.ph132.preheader, label %._crit_edge133.thread

.lr.ph132.preheader:                              ; preds = %._crit_edge
  %11 = load i32, ptr @n, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  br label %.lr.ph132

.lr.ph:                                           ; preds = %0, %52
  %.085101 = phi i32 [ %58, %52 ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  %13 = 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) %2)
          to label %14 unwind label %29

14:                                               ; preds = %.lr.ph
  %15 = 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) %13, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %16 unwind label %29

16:                                               ; preds = %14
  %17 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %18 unwind label %29

18:                                               ; preds = %16
  %19 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0)
  %20 = load i8, ptr %19, align 1, !tbaa !9
  %21 = icmp eq i8 %20, 71
  br i1 %21, label %22, label %35

22:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #8
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 1, i64 noundef -1)
          to label %23 unwind label %33

23:                                               ; preds = %22
  %24 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  %25 = load i32, ptr @n, align 4, !tbaa !5
  %26 = invoke noundef i32 @_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef null, i32 noundef 10)
          to label %27 unwind label %31

27:                                               ; preds = %23
  %28 = add nsw i32 %26, %25
  br label %37

29:                                               ; preds = %16, %14, %.lr.ph
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %61

31:                                               ; preds = %50, %42, %35, %23
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %61

33:                                               ; preds = %22
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  br label %61

35:                                               ; preds = %18
  %36 = invoke noundef i32 @_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef null, i32 noundef 10)
          to label %37 unwind label %31

37:                                               ; preds = %35, %27
  %.080 = phi i32 [ %28, %27 ], [ %36, %35 ]
  %38 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef 0)
  %39 = load i8, ptr %38, align 1, !tbaa !9
  %40 = icmp eq i8 %39, 71
  br i1 %40, label %41, label %50

41:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #8
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef 1, i64 noundef -1)
          to label %42 unwind label %48

42:                                               ; preds = %41
  %43 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  %44 = load i32, ptr @n, align 4, !tbaa !5
  %45 = invoke noundef i32 @_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef null, i32 noundef 10)
          to label %46 unwind label %31

46:                                               ; preds = %42
  %47 = add nsw i32 %45, %44
  br label %52

48:                                               ; preds = %41
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  br label %61

50:                                               ; preds = %37
  %51 = invoke noundef i32 @_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef null, i32 noundef 10)
          to label %52 unwind label %31

52:                                               ; preds = %50, %46
  %.079 = phi i32 [ %47, %46 ], [ %51, %50 ]
  %53 = load i32, ptr %1, align 4, !tbaa !5
  %54 = sext i32 %.080 to i64
  %55 = sext i32 %.079 to i64
  %56 = getelementptr inbounds [1020 x [1020 x i32]], ptr @e, i64 0, i64 %54, i64 %55
  store i32 %53, ptr %56, align 4, !tbaa !5
  %57 = getelementptr inbounds [1020 x [1020 x i32]], ptr @e, i64 0, i64 %55, i64 %54
  store i32 %53, ptr %57, align 4, !tbaa !5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  %58 = add nuw nsw i32 %.085101, 1
  %59 = load i32, ptr @k, align 4, !tbaa !5
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %.lr.ph, label %._crit_edge, !llvm.loop !10

61:                                               ; preds = %31, %33, %48, %29
  %.pn.pn = phi { ptr, i32 } [ %30, %29 ], [ %32, %31 ], [ %49, %48 ], [ %34, %33 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn.pn

._crit_edge133:                                   ; preds = %.thread
  %62 = icmp eq i32 %.278, -1
  br i1 %62, label %._crit_edge133.thread, label %137

.lr.ph132:                                        ; preds = %.lr.ph132.preheader, %.thread
  %indvars.iv152 = phi i64 [ %12, %.lr.ph132.preheader ], [ %indvars.iv.next153, %.thread ]
  %.070129 = phi double [ 0x41CDCD64FF800000, %.lr.ph132.preheader ], [ %.272, %.thread ]
  %.073128 = phi double [ -1.000000e+00, %.lr.ph132.preheader ], [ %.275, %.thread ]
  %.076127 = phi i32 [ -1, %.lr.ph132.preheader ], [ %.278, %.thread ]
  %indvars.iv.next153 = add nsw i64 %indvars.iv152, 1
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull @dis, ptr noundef nonnull getelementptr inbounds (i8, ptr @dis, i64 4080), ptr noundef nonnull align 4 dereferenceable(4) @_ZL3inf)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  store i8 0, ptr %6, align 1, !tbaa !12
  call void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef nonnull @visit, ptr noundef nonnull getelementptr inbounds (i8, ptr @visit, i64 1020), ptr noundef nonnull align 1 dereferenceable(1) %6)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  %63 = getelementptr inbounds [1020 x i32], ptr @dis, i64 0, i64 %indvars.iv.next153
  store i32 0, ptr %63, align 4, !tbaa !5
  %64 = load i32, ptr @n, align 4, !tbaa !5
  %65 = load i32, ptr @m, align 4, !tbaa !5
  %66 = add nsw i32 %65, %64
  %67 = icmp sgt i32 %66, 0
  br i1 %67, label %.preheader.preheader, label %.critedge

.preheader.preheader:                             ; preds = %.lr.ph132
  %68 = add i32 %64, 1
  %69 = add i32 %68, %65
  %wide.trip.count = zext i32 %69 to i64
  %70 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %70, 1
  %71 = icmp eq i32 %69, 2
  %unroll_iter = and i64 %70, -2
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge112
  %.064113 = phi i32 [ %115, %._crit_edge112 ], [ 0, %.preheader.preheader ]
  br i1 %71, label %._crit_edge107.unr-lcssa, label %.preheader.new

._crit_edge107.unr-lcssa:                         ; preds = %97, %.preheader
  %.163.lcssa.ph = phi i32 [ poison, %.preheader ], [ %.163.1, %97 ]
  %indvars.iv.unr = phi i64 [ 1, %.preheader ], [ %indvars.iv.next.1, %97 ]
  %.061104.unr = phi i32 [ 999999999, %.preheader ], [ %.1.1, %97 ]
  %.062103.unr = phi i32 [ -1, %.preheader ], [ %.163.1, %97 ]
  br i1 %lcmp.mod.not, label %._crit_edge107, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge107.unr-lcssa
  %72 = getelementptr inbounds [1020 x i8], ptr @visit, i64 0, i64 %indvars.iv.unr
  %73 = load i8, ptr %72, align 1, !tbaa !12, !range !14, !noundef !15
  %74 = icmp eq i8 %73, 0
  br i1 %74, label %75, label %._crit_edge107

75:                                               ; preds = %.epil.preheader
  %76 = getelementptr inbounds [1020 x i32], ptr @dis, i64 0, i64 %indvars.iv.unr
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = icmp slt i32 %77, %.061104.unr
  %79 = trunc nuw nsw i64 %indvars.iv.unr to i32
  %spec.select.epil = select i1 %78, i32 %79, i32 %.062103.unr
  br label %._crit_edge107

._crit_edge107:                                   ; preds = %.epil.preheader, %75, %._crit_edge107.unr-lcssa
  %.163.lcssa = phi i32 [ %.163.lcssa.ph, %._crit_edge107.unr-lcssa ], [ %.062103.unr, %.epil.preheader ], [ %spec.select.epil, %75 ]
  %.not92 = icmp eq i32 %.163.lcssa, -1
  br i1 %.not92, label %.critedge, label %.lr.ph111

.preheader.new:                                   ; preds = %.preheader, %97
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %97 ], [ 1, %.preheader ]
  %.061104 = phi i32 [ %.1.1, %97 ], [ 999999999, %.preheader ]
  %.062103 = phi i32 [ %.163.1, %97 ], [ -1, %.preheader ]
  %niter = phi i64 [ %niter.next.1, %97 ], [ 0, %.preheader ]
  %80 = getelementptr inbounds [1020 x i8], ptr @visit, i64 0, i64 %indvars.iv
  %81 = load i8, ptr %80, align 1, !tbaa !12, !range !14, !noundef !15
  %82 = icmp eq i8 %81, 0
  br i1 %82, label %83, label %88

83:                                               ; preds = %.preheader.new
  %84 = getelementptr inbounds [1020 x i32], ptr @dis, i64 0, i64 %indvars.iv
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = icmp slt i32 %85, %.061104
  %87 = trunc nuw nsw i64 %indvars.iv to i32
  %spec.select = select i1 %86, i32 %87, i32 %.062103
  %spec.select96 = call i32 @llvm.smin.i32(i32 %85, i32 %.061104)
  br label %88

88:                                               ; preds = %83, %.preheader.new
  %.163 = phi i32 [ %.062103, %.preheader.new ], [ %spec.select, %83 ]
  %.1 = phi i32 [ %.061104, %.preheader.new ], [ %spec.select96, %83 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %89 = getelementptr inbounds [1020 x i8], ptr @visit, i64 0, i64 %indvars.iv.next
  %90 = load i8, ptr %89, align 1, !tbaa !12, !range !14, !noundef !15
  %91 = icmp eq i8 %90, 0
  br i1 %91, label %92, label %97

92:                                               ; preds = %88
  %93 = getelementptr inbounds [1020 x i32], ptr @dis, i64 0, i64 %indvars.iv.next
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = icmp slt i32 %94, %.1
  %96 = trunc nuw nsw i64 %indvars.iv.next to i32
  %spec.select.1 = select i1 %95, i32 %96, i32 %.163
  %spec.select96.1 = call i32 @llvm.smin.i32(i32 %94, i32 %.1)
  br label %97

97:                                               ; preds = %92, %88
  %.163.1 = phi i32 [ %.163, %88 ], [ %spec.select.1, %92 ]
  %.1.1 = phi i32 [ %.1, %88 ], [ %spec.select96.1, %92 ]
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge107.unr-lcssa, label %.preheader.new, !llvm.loop !16

.lr.ph111:                                        ; preds = %._crit_edge107
  %98 = sext i32 %.163.lcssa to i64
  %99 = getelementptr inbounds [1020 x i8], ptr @visit, i64 0, i64 %98
  store i8 1, ptr %99, align 1, !tbaa !12
  %100 = getelementptr inbounds [1020 x i32], ptr @dis, i64 0, i64 %98
  br label %101

101:                                              ; preds = %.lr.ph111, %114
  %indvars.iv141 = phi i64 [ 1, %.lr.ph111 ], [ %indvars.iv.next142, %114 ]
  %102 = getelementptr inbounds [1020 x i8], ptr @visit, i64 0, i64 %indvars.iv141
  %103 = load i8, ptr %102, align 1, !tbaa !12, !range !14, !noundef !15
  %104 = icmp eq i8 %103, 0
  br i1 %104, label %105, label %114

105:                                              ; preds = %101
  %106 = getelementptr inbounds [1020 x i32], ptr @dis, i64 0, i64 %indvars.iv141
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = load i32, ptr %100, align 4, !tbaa !5
  %109 = getelementptr inbounds [1020 x [1020 x i32]], ptr @e, i64 0, i64 %98, i64 %indvars.iv141
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = add nsw i32 %110, %108
  %112 = icmp sgt i32 %107, %111
  br i1 %112, label %113, label %114

113:                                              ; preds = %105
  store i32 %111, ptr %106, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %101, %105, %113
  %indvars.iv.next142 = add nuw nsw i64 %indvars.iv141, 1
  %exitcond145.not = icmp eq i64 %indvars.iv.next142, %wide.trip.count
  br i1 %exitcond145.not, label %._crit_edge112, label %101, !llvm.loop !17

._crit_edge112:                                   ; preds = %114
  %115 = add nuw nsw i32 %.064113, 1
  %exitcond146.not = icmp eq i32 %115, %66
  br i1 %exitcond146.not, label %.critedge, label %.preheader, !llvm.loop !18

.critedge:                                        ; preds = %._crit_edge112, %._crit_edge107, %.lr.ph132
  %.not93117 = icmp slt i32 %64, 1
  br i1 %.not93117, label %._crit_edge122.thread, label %.lr.ph121

.lr.ph121:                                        ; preds = %.critedge
  %116 = load i32, ptr @ds, align 4, !tbaa !5
  %117 = add nuw i32 %64, 1
  %wide.trip.count150 = zext i32 %117 to i64
  br label %118

118:                                              ; preds = %.lr.ph121, %122
  %indvars.iv147 = phi i64 [ 1, %.lr.ph121 ], [ %indvars.iv.next148, %122 ]
  %.065119 = phi double [ 0.000000e+00, %.lr.ph121 ], [ %125, %122 ]
  %.066118 = phi double [ 0x41CDCD64FF800000, %.lr.ph121 ], [ %.167, %122 ]
  %119 = getelementptr inbounds [1020 x i32], ptr @dis, i64 0, i64 %indvars.iv147
  %120 = load i32, ptr %119, align 4, !tbaa !5
  %121 = icmp sgt i32 %120, %116
  br i1 %121, label %.thread, label %122

122:                                              ; preds = %118
  %123 = sitofp i32 %120 to double
  %124 = fcmp ogt double %.066118, %123
  %.167 = select i1 %124, double %123, double %.066118
  %125 = fadd double %.065119, %123
  %indvars.iv.next148 = add nuw nsw i64 %indvars.iv147, 1
  %exitcond151.not = icmp eq i64 %indvars.iv.next148, %wide.trip.count150
  br i1 %exitcond151.not, label %._crit_edge122, label %118, !llvm.loop !19

._crit_edge122:                                   ; preds = %122
  %126 = fcmp oeq double %.167, -1.000000e+00
  br i1 %126, label %.thread, label %._crit_edge122.thread

._crit_edge122.thread:                            ; preds = %.critedge, %._crit_edge122
  %.065.lcssa162 = phi double [ %125, %._crit_edge122 ], [ 0.000000e+00, %.critedge ]
  %.066.lcssa161 = phi double [ %.167, %._crit_edge122 ], [ 0x41CDCD64FF800000, %.critedge ]
  %127 = sitofp i32 %64 to double
  %128 = fdiv double %.065.lcssa162, %127
  %129 = fcmp ogt double %.066.lcssa161, %.073128
  %130 = trunc nsw i64 %indvars.iv.next153 to i32
  br i1 %129, label %.thread, label %131

131:                                              ; preds = %._crit_edge122.thread
  %132 = fcmp oeq double %.066.lcssa161, %.073128
  %133 = fcmp olt double %128, %.070129
  %or.cond = select i1 %132, i1 %133, i1 false
  br i1 %or.cond, label %134, label %.thread

134:                                              ; preds = %131
  br label %.thread

.thread:                                          ; preds = %118, %134, %131, %._crit_edge122.thread, %._crit_edge122
  %.278 = phi i32 [ %.076127, %._crit_edge122 ], [ %130, %134 ], [ %.076127, %131 ], [ %130, %._crit_edge122.thread ], [ %.076127, %118 ]
  %.275 = phi double [ %.073128, %._crit_edge122 ], [ %.073128, %134 ], [ %.073128, %131 ], [ %.066.lcssa161, %._crit_edge122.thread ], [ %.073128, %118 ]
  %.272 = phi double [ %.070129, %._crit_edge122 ], [ %128, %134 ], [ %.070129, %131 ], [ %128, %._crit_edge122.thread ], [ %.070129, %118 ]
  %135 = sext i32 %66 to i64
  %.not.not = icmp slt i64 %indvars.iv.next153, %135
  br i1 %.not.not, label %.lr.ph132, label %._crit_edge133, !llvm.loop !20

._crit_edge133.thread:                            ; preds = %._crit_edge, %._crit_edge133
  %136 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %141

137:                                              ; preds = %._crit_edge133
  %138 = sub nsw i32 %.278, %64
  %139 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %138)
  %140 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %.275, double noundef %.272)
  br label %141

141:                                              ; preds = %137, %._crit_edge133.thread
  ret i32 0
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 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 #5

declare i32 @__gxx_personality_v0(...)

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 #5

; 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 #4 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef) local_unnamed_addr #6 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef) local_unnamed_addr #1

; 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 #1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #7

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 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { "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 = { 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !11}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass