; LLVM IR from upupming/algorithm :: AdvancedLevel_C++/1072. Gas Station (30)  (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 [14 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 = %100, %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 %105

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 %104

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 %103

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 %103

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 %103

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 %9, 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 %8, 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 %8, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [1020 x [1020 x i32]], ptr @e, i64 0, i64 %95
  %97 = load i32, ptr %9, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [1020 x i32], ptr %96, i64 0, i64 %98
  store i32 %87, ptr %99, 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 %100

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

103:                                              ; 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 %104

104:                                              ; preds = %103, %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 %317

105:                                              ; 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
  %106 = load i32, ptr @n, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %15, align 4, !tbaa !5
  br label %108

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

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

115:                                              ; preds = %108
  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
  %116 = load i32, ptr %15, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [1020 x i32], ptr @dis, i64 0, i64 %117
  store i32 0, ptr %118, 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 %119

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

125:                                              ; preds = %119
  store i32 8, ptr %16, align 4
  br label %227

126:                                              ; preds = %119
  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 %127

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

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

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

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

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

155:                                              ; preds = %149, %142, %134
  br label %156

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

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

162:                                              ; preds = %159
  store i32 8, ptr %16, align 4
  br label %221

163:                                              ; preds = %159
  %164 = load i32, ptr %21, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [1020 x i8], ptr @visit, i64 0, i64 %165
  store i8 1, ptr %166, 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 %167

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

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

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

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

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

216:                                              ; preds = %200, %182, %174
  br label %217

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

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

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

223:                                              ; preds = %221
  br label %224

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

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

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

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

233:                                              ; preds = %229
  store i32 17, ptr %16, align 4
  br label %267

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

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

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

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

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

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

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

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

271:                                              ; preds = %268
  store i32 7, ptr %16, align 4
  br label %297

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

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

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

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

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

295:                                              ; preds = %292, %288, %284
  br label %296

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

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

299:                                              ; preds = %297
  br label %300

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

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

306:                                              ; preds = %303
  %307 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %315

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

315:                                              ; preds = %308, %306
  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
  %316 = load i32, ptr %1, align 4
  ret i32 %316

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

322:                                              ; preds = %297
  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 [14 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 %.079 to i64
  %55 = sext i32 %.080 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 %140

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, double noundef %.275, double noundef %.272)
  br label %140

140:                                              ; 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