; LLVM IR from Izaron/ACM-ICPC :: Russian Olympiad in Informatics/Final Stage 2016 (robots)

; 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::__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] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@g = external dso_local global i32, align 4
@_Z1sB5cxx11 = external dso_local global [1005 x %"class.std::__cxx11::basic_string"], align 16
@_Z4slowB5cxx11 = external dso_local global [1005 x %"class.std::__cxx11::basic_string"], align 16
@hasRobot = external dso_local global [1005 x [1005 x i8]], align 16
@used = external dso_local global [1005 x [1005 x i32]], align 16
@cycleNum = external dso_local global [1005 x [1005 x i32]], align 16
@toCycle = external dso_local global [1005 x [1005 x i32]], align 16
@cycleLen = external dso_local global [1000005 x i32], align 16
@cycleLenBeen = external dso_local global [1000005 x i32], align 16
@tme = external dso_local global i32, align 4
@posA = external dso_local global [1000005 x i32], align 16
@posB = external dso_local global [1000005 x i32], align 16
@ttimerr = external dso_local global [1000005 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z12findCycleNumiii(i32 noundef, i32 noundef, i32 noundef) #0

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %10 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %11 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %12 = getelementptr i8, ptr %11, i64 -24
  %13 = load i64, ptr %12, align 8
  %14 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %13
  %15 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %14, ptr noundef null)
  %16 = load ptr, ptr @stdin, align 8, !tbaa !8
  %17 = call ptr @freopen(ptr noundef @.str, ptr noundef @.str.4, ptr noundef %16)
  %18 = load ptr, ptr @stdout, align 8, !tbaa !8
  %19 = call ptr @freopen(ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %18)
  call void @llvm.memset.p0.i64(ptr align 16 @used, i8 0, i64 4040100, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @hasRobot, i8 0, i64 1010025, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @cycleNum, i8 -1, i64 4040100, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @toCycle, i8 -1, i64 4040100, i1 false)
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(4) @m)
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 4 dereferenceable(4) @g)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 0, ptr %2, align 4, !tbaa !11
  br label %23

23:                                               ; preds = %92, %0
  %24 = load i32, ptr %2, align 4, !tbaa !11
  %25 = load i32, ptr @n, align 4, !tbaa !11
  %26 = icmp slt i32 %24, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %23
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %95

28:                                               ; preds = %23
  %29 = load i32, ptr %2, align 4, !tbaa !11
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [1005 x %"class.std::__cxx11::basic_string"], ptr @_Z1sB5cxx11, i64 0, i64 %30
  %32 = call 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) %31)
  %33 = load i32, ptr %2, align 4, !tbaa !11
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [1005 x %"class.std::__cxx11::basic_string"], ptr @_Z1sB5cxx11, i64 0, i64 %34
  %36 = load i32, ptr %2, align 4, !tbaa !11
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [1005 x %"class.std::__cxx11::basic_string"], ptr @_Z4slowB5cxx11, i64 0, i64 %37
  %39 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %35)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 0, ptr %4, align 4, !tbaa !11
  br label %40

40:                                               ; preds = %88, %28
  %41 = load i32, ptr %4, align 4, !tbaa !11
  %42 = load i32, ptr @m, align 4, !tbaa !11
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %45, label %44

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

45:                                               ; preds = %40
  %46 = load i32, ptr %2, align 4, !tbaa !11
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [1005 x %"class.std::__cxx11::basic_string"], ptr @_Z1sB5cxx11, i64 0, i64 %47
  %49 = load i32, ptr %4, align 4, !tbaa !11
  %50 = sext i32 %49 to i64
  %51 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %48, i64 noundef %50)
  %52 = load i8, ptr %51, align 1, !tbaa !13
  %53 = sext i8 %52 to i32
  %54 = load i32, ptr %2, align 4, !tbaa !11
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [1005 x %"class.std::__cxx11::basic_string"], ptr @_Z1sB5cxx11, i64 0, i64 %55
  %57 = load i32, ptr %4, align 4, !tbaa !11
  %58 = sext i32 %57 to i64
  %59 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %56, i64 noundef %58)
  %60 = load i8, ptr %59, align 1, !tbaa !13
  %61 = sext i8 %60 to i32
  %62 = call i32 @tolower(i32 noundef %61) #9
  %63 = icmp ne i32 %53, %62
  br i1 %63, label %64, label %71

64:                                               ; preds = %45
  %65 = load i32, ptr %2, align 4, !tbaa !11
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [1005 x [1005 x i8]], ptr @hasRobot, i64 0, i64 %66
  %68 = load i32, ptr %4, align 4, !tbaa !11
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [1005 x i8], ptr %67, i64 0, i64 %69
  store i8 1, ptr %70, align 1, !tbaa !14
  br label %71

71:                                               ; preds = %64, %45
  %72 = load i32, ptr %2, align 4, !tbaa !11
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [1005 x %"class.std::__cxx11::basic_string"], ptr @_Z4slowB5cxx11, i64 0, i64 %73
  %75 = load i32, ptr %4, align 4, !tbaa !11
  %76 = sext i32 %75 to i64
  %77 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %74, i64 noundef %76)
  %78 = load i8, ptr %77, align 1, !tbaa !13
  %79 = sext i8 %78 to i32
  %80 = call i32 @tolower(i32 noundef %79) #9
  %81 = trunc i32 %80 to i8
  %82 = load i32, ptr %2, align 4, !tbaa !11
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [1005 x %"class.std::__cxx11::basic_string"], ptr @_Z4slowB5cxx11, i64 0, i64 %83
  %85 = load i32, ptr %4, align 4, !tbaa !11
  %86 = sext i32 %85 to i64
  %87 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %84, i64 noundef %86)
  store i8 %81, ptr %87, align 1, !tbaa !13
  br label %88

88:                                               ; preds = %71
  %89 = load i32, ptr %4, align 4, !tbaa !11
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %4, align 4, !tbaa !11
  br label %40, !llvm.loop !16

91:                                               ; preds = %44
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %2, align 4, !tbaa !11
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %2, align 4, !tbaa !11
  br label %23, !llvm.loop !18

95:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 0, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 0, ptr %6, align 4, !tbaa !11
  br label %96

96:                                               ; preds = %171, %95
  %97 = load i32, ptr %6, align 4, !tbaa !11
  %98 = load i32, ptr @n, align 4, !tbaa !11
  %99 = icmp slt i32 %97, %98
  br i1 %99, label %101, label %100

100:                                              ; preds = %96
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %174

101:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 0, ptr %7, align 4, !tbaa !11
  br label %102

102:                                              ; preds = %167, %101
  %103 = load i32, ptr %7, align 4, !tbaa !11
  %104 = load i32, ptr @m, align 4, !tbaa !11
  %105 = icmp slt i32 %103, %104
  br i1 %105, label %107, label %106

106:                                              ; preds = %102
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %170

107:                                              ; preds = %102
  %108 = load i32, ptr @tme, align 4, !tbaa !11
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr @tme, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %110 = load i32, ptr %6, align 4, !tbaa !11
  %111 = load i32, ptr %7, align 4, !tbaa !11
  %112 = call noundef i32 @_Z12findCycleNumiii(i32 noundef %110, i32 noundef %111, i32 noundef 1)
  store i32 %112, ptr %8, align 4, !tbaa !11
  %113 = load i32, ptr %8, align 4, !tbaa !11
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [1000005 x i32], ptr @cycleLen, i64 0, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !11
  %117 = icmp sgt i32 %116, 0
  br i1 %117, label %118, label %166

118:                                              ; preds = %107
  %119 = load i32, ptr %6, align 4, !tbaa !11
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [1005 x [1005 x i8]], ptr @hasRobot, i64 0, i64 %120
  %122 = load i32, ptr %7, align 4, !tbaa !11
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [1005 x i8], ptr %121, i64 0, i64 %123
  %125 = load i8, ptr %124, align 1, !tbaa !14, !range !19, !noundef !20
  %126 = trunc i8 %125 to i1
  br i1 %126, label %127, label %166

127:                                              ; preds = %118
  %128 = load i32, ptr %6, align 4, !tbaa !11
  %129 = add nsw i32 %128, 1
  %130 = load i32, ptr %5, align 4, !tbaa !11
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [1000005 x i32], ptr @posA, i64 0, i64 %131
  store i32 %129, ptr %132, align 4, !tbaa !11
  %133 = load i32, ptr %7, align 4, !tbaa !11
  %134 = add nsw i32 %133, 1
  %135 = load i32, ptr %5, align 4, !tbaa !11
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [1000005 x i32], ptr @posB, i64 0, i64 %136
  store i32 %134, ptr %137, align 4, !tbaa !11
  %138 = load i32, ptr %6, align 4, !tbaa !11
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [1005 x [1005 x i32]], ptr @toCycle, i64 0, i64 %139
  %141 = load i32, ptr %7, align 4, !tbaa !11
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [1005 x i32], ptr %140, i64 0, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !11
  %145 = sub nsw i32 10000000, %144
  %146 = load i32, ptr %8, align 4, !tbaa !11
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [1000005 x i32], ptr @cycleLenBeen, i64 0, i64 %147
  %149 = load i32, ptr %148, align 4, !tbaa !11
  %150 = add nsw i32 %145, %149
  %151 = load i32, ptr %8, align 4, !tbaa !11
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [1000005 x i32], ptr @cycleLen, i64 0, i64 %152
  %154 = load i32, ptr %153, align 4, !tbaa !11
  %155 = sub nsw i32 %150, %154
  %156 = load i32, ptr %5, align 4, !tbaa !11
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [1000005 x i32], ptr @ttimerr, i64 0, i64 %157
  store i32 %155, ptr %158, align 4, !tbaa !11
  %159 = load i32, ptr %5, align 4, !tbaa !11
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %5, align 4, !tbaa !11
  %161 = load i32, ptr %8, align 4, !tbaa !11
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [1000005 x i32], ptr @cycleLen, i64 0, i64 %162
  %164 = load i32, ptr %163, align 4, !tbaa !11
  %165 = add nsw i32 %164, -1
  store i32 %165, ptr %163, align 4, !tbaa !11
  br label %166

166:                                              ; preds = %127, %118, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %167

167:                                              ; preds = %166
  %168 = load i32, ptr %7, align 4, !tbaa !11
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %7, align 4, !tbaa !11
  br label %102, !llvm.loop !21

170:                                              ; preds = %106
  br label %171

171:                                              ; preds = %170
  %172 = load i32, ptr %6, align 4, !tbaa !11
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %6, align 4, !tbaa !11
  br label %96, !llvm.loop !22

174:                                              ; preds = %100
  %175 = load i32, ptr %5, align 4, !tbaa !11
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %175)
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %176, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %178 = load i32, ptr @g, align 4, !tbaa !11
  %179 = icmp eq i32 %178, 1
  br i1 %179, label %180, label %204

180:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %181

181:                                              ; preds = %200, %180
  %182 = load i32, ptr %9, align 4, !tbaa !11
  %183 = load i32, ptr %5, align 4, !tbaa !11
  %184 = icmp slt i32 %182, %183
  br i1 %184, label %186, label %185

185:                                              ; preds = %181
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %203

186:                                              ; preds = %181
  %187 = load i32, ptr %9, align 4, !tbaa !11
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [1000005 x i32], ptr @posA, i64 0, i64 %188
  %190 = load i32, ptr %189, align 4, !tbaa !11
  %191 = load i32, ptr %9, align 4, !tbaa !11
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [1000005 x i32], ptr @posB, i64 0, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !11
  %195 = load i32, ptr %9, align 4, !tbaa !11
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [1000005 x i32], ptr @ttimerr, i64 0, i64 %196
  %198 = load i32, ptr %197, align 4, !tbaa !11
  %199 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %190, i32 noundef %194, i32 noundef %198)
  br label %200

200:                                              ; preds = %186
  %201 = load i32, ptr %9, align 4, !tbaa !11
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %9, align 4, !tbaa !11
  br label %181, !llvm.loop !23

203:                                              ; preds = %185
  br label %204

204:                                              ; preds = %203, %174
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  %205 = load i32, ptr %1, align 4
  ret i32 %205
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #4

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #1 align 2

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @tolower(i32 noundef) #6

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

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

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

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

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

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !10, i64 0}
!13 = !{!10, !10, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !10, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}


; 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::__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] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@g = external dso_local global i32, align 4
@_Z1sB5cxx11 = external dso_local global [1005 x %"class.std::__cxx11::basic_string"], align 16
@_Z4slowB5cxx11 = external dso_local global [1005 x %"class.std::__cxx11::basic_string"], align 16
@hasRobot = external dso_local local_unnamed_addr global [1005 x [1005 x i8]], align 16
@used = external dso_local local_unnamed_addr global [1005 x [1005 x i32]], align 16
@cycleNum = external dso_local local_unnamed_addr global [1005 x [1005 x i32]], align 16
@toCycle = external dso_local local_unnamed_addr global [1005 x [1005 x i32]], align 16
@cycleLen = external dso_local local_unnamed_addr global [1000005 x i32], align 16
@cycleLenBeen = external dso_local local_unnamed_addr global [1000005 x i32], align 16
@tme = external dso_local local_unnamed_addr global i32, align 4
@posA = external dso_local local_unnamed_addr global [1000005 x i32], align 16
@posB = external dso_local local_unnamed_addr global [1000005 x i32], align 16
@ttimerr = external dso_local local_unnamed_addr global [1000005 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z12findCycleNumiii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %2 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %3 = getelementptr i8, ptr %2, i64 -24
  %4 = load i64, ptr %3, align 8
  %5 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %4
  %6 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %5, ptr noundef null)
  %7 = load ptr, ptr @stdin, align 8, !tbaa !8
  %8 = tail call ptr @freopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.4, ptr noundef %7)
  %9 = load ptr, ptr @stdout, align 8, !tbaa !8
  %10 = tail call ptr @freopen(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef %9)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(4040100) @used, i8 0, i64 4040100, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1010025) @hasRobot, i8 0, i64 1010025, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(4040100) @cycleNum, i8 -1, i64 4040100, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(4040100) @toCycle, i8 -1, i64 4040100, i1 false)
  %11 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %12 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) @m)
  %13 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) @g)
  %14 = load i32, ptr @n, align 4, !tbaa !11
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.lr.ph57, label %._crit_edge64

.preheader53:                                     ; preds = %._crit_edge
  %16 = icmp sgt i32 %25, 0
  %17 = load i32, ptr @m, align 4
  %18 = icmp sgt i32 %17, 0
  %or.cond85 = select i1 %16, i1 %18, i1 false
  br i1 %or.cond85, label %.preheader52, label %._crit_edge64

.lr.ph57:                                         ; preds = %0, %._crit_edge
  %indvars.iv70 = phi i64 [ %indvars.iv.next71, %._crit_edge ], [ 0, %0 ]
  %19 = getelementptr inbounds [1005 x %"class.std::__cxx11::basic_string"], ptr @_Z1sB5cxx11, i64 0, i64 %indvars.iv70
  %20 = tail call 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) %19)
  %21 = getelementptr inbounds [1005 x %"class.std::__cxx11::basic_string"], ptr @_Z4slowB5cxx11, i64 0, i64 %indvars.iv70
  %22 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %19)
  %23 = load i32, ptr @m, align 4, !tbaa !11
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %37, %.lr.ph57
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %25 = load i32, ptr @n, align 4, !tbaa !11
  %26 = sext i32 %25 to i64
  %27 = icmp slt i64 %indvars.iv.next71, %26
  br i1 %27, label %.lr.ph57, label %.preheader53, !llvm.loop !13

.lr.ph:                                           ; preds = %.lr.ph57, %37
  %indvars.iv = phi i64 [ %indvars.iv.next, %37 ], [ 0, %.lr.ph57 ]
  %28 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %19, i64 noundef %indvars.iv)
  %29 = load i8, ptr %28, align 1, !tbaa !15
  %30 = sext i8 %29 to i32
  %31 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %19, i64 noundef %indvars.iv)
  %32 = load i8, ptr %31, align 1, !tbaa !15
  %33 = sext i8 %32 to i32
  %34 = tail call i32 @tolower(i32 noundef %33) #8
  %.not = icmp eq i32 %34, %30
  br i1 %.not, label %37, label %35

35:                                               ; preds = %.lr.ph
  %36 = getelementptr inbounds [1005 x [1005 x i8]], ptr @hasRobot, i64 0, i64 %indvars.iv70, i64 %indvars.iv
  store i8 1, ptr %36, align 1, !tbaa !16
  br label %37

37:                                               ; preds = %35, %.lr.ph
  %38 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %21, i64 noundef %indvars.iv)
  %39 = load i8, ptr %38, align 1, !tbaa !15
  %40 = sext i8 %39 to i32
  %41 = tail call i32 @tolower(i32 noundef %40) #8
  %42 = trunc i32 %41 to i8
  %43 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %21, i64 noundef %indvars.iv)
  store i8 %42, ptr %43, align 1, !tbaa !15
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %44 = load i32, ptr @m, align 4, !tbaa !11
  %45 = sext i32 %44 to i64
  %46 = icmp slt i64 %indvars.iv.next, %45
  br i1 %46, label %.lr.ph, label %._crit_edge, !llvm.loop !18

.preheader52:                                     ; preds = %.preheader53, %._crit_edge61
  %47 = phi i32 [ %58, %._crit_edge61 ], [ %25, %.preheader53 ]
  %48 = phi i32 [ %59, %._crit_edge61 ], [ %17, %.preheader53 ]
  %indvars.iv76 = phi i64 [ %50, %._crit_edge61 ], [ 0, %.preheader53 ]
  %.04862 = phi i32 [ %.1.lcssa, %._crit_edge61 ], [ 0, %.preheader53 ]
  %49 = icmp sgt i32 %48, 0
  %50 = add nuw nsw i64 %indvars.iv76, 1
  br i1 %49, label %.lr.ph60, label %._crit_edge61

.lr.ph60:                                         ; preds = %.preheader52
  %51 = trunc nuw nsw i64 %indvars.iv76 to i32
  %52 = trunc nuw nsw i64 %50 to i32
  br label %62

._crit_edge64:                                    ; preds = %._crit_edge61, %0, %.preheader53
  %.048.lcssa = phi i32 [ 0, %.preheader53 ], [ 0, %0 ], [ %.1.lcssa, %._crit_edge61 ]
  %53 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.048.lcssa)
  %54 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %55 = load i32, ptr @g, align 4, !tbaa !11
  %56 = icmp eq i32 %55, 1
  %57 = icmp sgt i32 %.048.lcssa, 0
  %or.cond = and i1 %56, %57
  br i1 %or.cond, label %.lr.ph67.preheader, label %.loopexit

.lr.ph67.preheader:                               ; preds = %._crit_edge64
  %wide.trip.count = zext nneg i32 %.048.lcssa to i64
  br label %.lr.ph67

._crit_edge61.loopexit:                           ; preds = %90
  %.pre = load i32, ptr @n, align 4, !tbaa !11
  br label %._crit_edge61

._crit_edge61:                                    ; preds = %.preheader52, %._crit_edge61.loopexit
  %58 = phi i32 [ %.pre, %._crit_edge61.loopexit ], [ %47, %.preheader52 ]
  %59 = phi i32 [ %91, %._crit_edge61.loopexit ], [ %48, %.preheader52 ]
  %.1.lcssa = phi i32 [ %.2, %._crit_edge61.loopexit ], [ %.04862, %.preheader52 ]
  %60 = sext i32 %58 to i64
  %61 = icmp slt i64 %50, %60
  br i1 %61, label %.preheader52, label %._crit_edge64, !llvm.loop !19

62:                                               ; preds = %.lr.ph60, %90
  %indvars.iv73 = phi i64 [ 0, %.lr.ph60 ], [ %indvars.iv.next74, %90 ]
  %.158 = phi i32 [ %.04862, %.lr.ph60 ], [ %.2, %90 ]
  %63 = load i32, ptr @tme, align 4, !tbaa !11
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr @tme, align 4, !tbaa !11
  %65 = trunc nuw nsw i64 %indvars.iv73 to i32
  %66 = tail call noundef i32 @_Z12findCycleNumiii(i32 noundef %51, i32 noundef %65, i32 noundef 1)
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [1000005 x i32], ptr @cycleLen, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !11
  %70 = icmp sgt i32 %69, 0
  br i1 %70, label %71, label %90

71:                                               ; preds = %62
  %72 = getelementptr inbounds [1005 x [1005 x i8]], ptr @hasRobot, i64 0, i64 %indvars.iv76, i64 %indvars.iv73
  %73 = load i8, ptr %72, align 1, !tbaa !16, !range !21, !noundef !22
  %74 = trunc nuw i8 %73 to i1
  br i1 %74, label %75, label %90

75:                                               ; preds = %71
  %76 = sext i32 %.158 to i64
  %77 = getelementptr inbounds [1000005 x i32], ptr @posA, i64 0, i64 %76
  store i32 %52, ptr %77, align 4, !tbaa !11
  %78 = getelementptr inbounds [1000005 x i32], ptr @posB, i64 0, i64 %76
  %79 = trunc i64 %indvars.iv73 to i32
  %80 = add i32 %79, 1
  store i32 %80, ptr %78, align 4, !tbaa !11
  %81 = getelementptr inbounds [1005 x [1005 x i32]], ptr @toCycle, i64 0, i64 %indvars.iv76, i64 %indvars.iv73
  %82 = load i32, ptr %81, align 4, !tbaa !11
  %83 = getelementptr inbounds [1000005 x i32], ptr @cycleLenBeen, i64 0, i64 %67
  %84 = load i32, ptr %83, align 4, !tbaa !11
  %85 = add i32 %69, %82
  %reass.sub = sub i32 %84, %85
  %86 = add i32 %reass.sub, 10000000
  %87 = getelementptr inbounds [1000005 x i32], ptr @ttimerr, i64 0, i64 %76
  store i32 %86, ptr %87, align 4, !tbaa !11
  %88 = add nsw i32 %.158, 1
  %89 = add nsw i32 %69, -1
  store i32 %89, ptr %68, align 4, !tbaa !11
  br label %90

90:                                               ; preds = %75, %71, %62
  %.2 = phi i32 [ %88, %75 ], [ %.158, %71 ], [ %.158, %62 ]
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
  %91 = load i32, ptr @m, align 4, !tbaa !11
  %92 = sext i32 %91 to i64
  %93 = icmp slt i64 %indvars.iv.next74, %92
  br i1 %93, label %62, label %._crit_edge61.loopexit, !llvm.loop !23

.lr.ph67:                                         ; preds = %.lr.ph67.preheader, %.lr.ph67
  %indvars.iv79 = phi i64 [ 0, %.lr.ph67.preheader ], [ %indvars.iv.next80, %.lr.ph67 ]
  %94 = getelementptr inbounds [1000005 x i32], ptr @posA, i64 0, i64 %indvars.iv79
  %95 = load i32, ptr %94, align 4, !tbaa !11
  %96 = getelementptr inbounds [1000005 x i32], ptr @posB, i64 0, i64 %indvars.iv79
  %97 = load i32, ptr %96, align 4, !tbaa !11
  %98 = getelementptr inbounds [1000005 x i32], ptr @ttimerr, i64 0, i64 %indvars.iv79
  %99 = load i32, ptr %98, align 4, !tbaa !11
  %100 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %95, i32 noundef %97, i32 noundef %99)
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next80, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph67, !llvm.loop !24

.loopexit:                                        ; preds = %.lr.ph67, %._crit_edge64
  ret i32 0
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #1 align 2

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare i32 @tolower(i32 noundef) local_unnamed_addr #5

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

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

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

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

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

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!10, !10, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"bool", !10, i64 0}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14, !20}
!20 = !{!"llvm.loop.unswitch.partial.disable"}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}


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