; LLVM IR from kazunetakahashi/atcoder :: 2019/0901_ABC139/past (F)

; 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_ostream" = type { ptr, %"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_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::chrono::duration.7" = type { i64 }
%"struct.std::_Setprecision" = type { i32 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@N = external dso_local global i32, align 4
@X = external dso_local global [110 x i64], align 16
@Y = external dso_local global [110 x i64], align 16
@ans = external dso_local global i64, align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6solve2v() #0

; 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5solvev() #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::chrono::time_point", align 8
  %4 = alloca %"class.std::chrono::time_point", align 8
  %5 = alloca double, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::chrono::time_point", align 8
  %11 = alloca %"class.std::chrono::duration.7", align 8
  %12 = alloca %"class.std::chrono::duration", align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::_Setprecision", align 4
  store i32 0, ptr %1, align 4
  %18 = 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)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #9
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %33, %0
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = load i32, ptr @N, align 4, !tbaa !5
  %22 = icmp slt i32 %20, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  br label %36

24:                                               ; preds = %19
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [110 x i64], ptr @X, i64 0, i64 %26
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %27)
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [110 x i64], ptr @Y, i64 0, i64 %30
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(8) %31)
  br label %33

33:                                               ; preds = %24
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %2, align 4, !tbaa !5
  br label %19, !llvm.loop !9

36:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #9
  %37 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #9
  %38 = getelementptr inbounds %"class.std::chrono::time_point", ptr %3, i32 0, i32 0
  %39 = getelementptr inbounds %"class.std::chrono::duration", ptr %38, i32 0, i32 0
  store i64 %37, ptr %39, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  %40 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #9
  %41 = getelementptr inbounds %"class.std::chrono::time_point", ptr %4, i32 0, i32 0
  %42 = getelementptr inbounds %"class.std::chrono::duration", ptr %41, i32 0, i32 0
  store i64 %40, ptr %42, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  store double 0.000000e+00, ptr %5, align 8, !tbaa !11
  call void @_Z6solve2v()
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %57, %36
  %44 = load i32, ptr %6, align 4, !tbaa !5
  %45 = load i32, ptr @N, align 4, !tbaa !5
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  br label %60

48:                                               ; preds = %43
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [110 x i64], ptr @X, i64 0, i64 %50
  %52 = load i64, ptr %51, align 8, !tbaa !13
  %53 = sub nsw i64 0, %52
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [110 x i64], ptr @X, i64 0, i64 %55
  store i64 %53, ptr %56, align 8, !tbaa !13
  br label %57

57:                                               ; preds = %48
  %58 = load i32, ptr %6, align 4, !tbaa !5
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %6, align 4, !tbaa !5
  br label %43, !llvm.loop !15

60:                                               ; preds = %47
  call void @_Z6solve2v()
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %75, %60
  %62 = load i32, ptr %7, align 4, !tbaa !5
  %63 = load i32, ptr @N, align 4, !tbaa !5
  %64 = icmp slt i32 %62, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  br label %78

66:                                               ; preds = %61
  %67 = load i32, ptr %7, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [110 x i64], ptr @Y, i64 0, i64 %68
  %70 = load i64, ptr %69, align 8, !tbaa !13
  %71 = sub nsw i64 0, %70
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [110 x i64], ptr @Y, i64 0, i64 %73
  store i64 %71, ptr %74, align 8, !tbaa !13
  br label %75

75:                                               ; preds = %66
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %7, align 4, !tbaa !5
  br label %61, !llvm.loop !16

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

79:                                               ; preds = %93, %78
  %80 = load i32, ptr %8, align 4, !tbaa !5
  %81 = load i32, ptr @N, align 4, !tbaa !5
  %82 = icmp slt i32 %80, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  br label %96

84:                                               ; preds = %79
  %85 = load i32, ptr %8, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [110 x i64], ptr @X, i64 0, i64 %86
  %88 = load i64, ptr %87, align 8, !tbaa !13
  %89 = sub nsw i64 0, %88
  %90 = load i32, ptr %8, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [110 x i64], ptr @X, i64 0, i64 %91
  store i64 %89, ptr %92, align 8, !tbaa !13
  br label %93

93:                                               ; preds = %84
  %94 = load i32, ptr %8, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %8, align 4, !tbaa !5
  br label %79, !llvm.loop !17

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

97:                                               ; preds = %111, %96
  %98 = load i32, ptr %9, align 4, !tbaa !5
  %99 = load i32, ptr @N, align 4, !tbaa !5
  %100 = icmp slt i32 %98, %99
  br i1 %100, label %102, label %101

101:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  br label %114

102:                                              ; preds = %97
  %103 = load i32, ptr %9, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [110 x i64], ptr @Y, i64 0, i64 %104
  %106 = load i64, ptr %105, align 8, !tbaa !13
  %107 = sub nsw i64 0, %106
  %108 = load i32, ptr %9, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [110 x i64], ptr @Y, i64 0, i64 %109
  store i64 %107, ptr %110, align 8, !tbaa !13
  br label %111

111:                                              ; preds = %102
  %112 = load i32, ptr %9, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %9, align 4, !tbaa !5
  br label %97, !llvm.loop !18

114:                                              ; preds = %101
  br label %115

115:                                              ; preds = %201, %114
  br label %116

116:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %117 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #9
  %118 = getelementptr inbounds %"class.std::chrono::time_point", ptr %10, i32 0, i32 0
  %119 = getelementptr inbounds %"class.std::chrono::duration", ptr %118, i32 0, i32 0
  store i64 %117, ptr %119, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %10, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %120 = call i64 @_ZNSt6chronomiINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %121 = getelementptr inbounds %"class.std::chrono::duration", ptr %12, i32 0, i32 0
  store i64 %120, ptr %121, align 8
  %122 = call i64 @_ZNSt6chrono13duration_castINS_8durationIlSt5ratioILl1ELl1000EEEElS2_ILl1ELl1000000000EEEENSt9enable_ifIXsr13__is_durationIT_EE5valueES7_E4typeERKNS1_IT0_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %123 = getelementptr inbounds %"class.std::chrono::duration.7", ptr %11, i32 0, i32 0
  store i64 %122, ptr %123, align 8
  %124 = call noundef i64 @_ZNKSt6chrono8durationIlSt5ratioILl1ELl1000EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
  %125 = sitofp i64 %124 to double
  store double %125, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  %126 = load double, ptr %5, align 8, !tbaa !11
  %127 = fcmp oge double %126, 1.990000e+03
  br i1 %127, label %128, label %129

128:                                              ; preds = %116
  br label %202

129:                                              ; preds = %116
  call void @_Z5solvev()
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %144, %129
  %131 = load i32, ptr %13, align 4, !tbaa !5
  %132 = load i32, ptr @N, align 4, !tbaa !5
  %133 = icmp slt i32 %131, %132
  br i1 %133, label %135, label %134

134:                                              ; preds = %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  br label %147

135:                                              ; preds = %130
  %136 = load i32, ptr %13, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [110 x i64], ptr @X, i64 0, i64 %137
  %139 = load i64, ptr %138, align 8, !tbaa !13
  %140 = sub nsw i64 0, %139
  %141 = load i32, ptr %13, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [110 x i64], ptr @X, i64 0, i64 %142
  store i64 %140, ptr %143, align 8, !tbaa !13
  br label %144

144:                                              ; preds = %135
  %145 = load i32, ptr %13, align 4, !tbaa !5
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %13, align 4, !tbaa !5
  br label %130, !llvm.loop !22

147:                                              ; preds = %134
  call void @_Z5solvev()
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %148

148:                                              ; preds = %162, %147
  %149 = load i32, ptr %14, align 4, !tbaa !5
  %150 = load i32, ptr @N, align 4, !tbaa !5
  %151 = icmp slt i32 %149, %150
  br i1 %151, label %153, label %152

152:                                              ; preds = %148
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  br label %165

153:                                              ; preds = %148
  %154 = load i32, ptr %14, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [110 x i64], ptr @Y, i64 0, i64 %155
  %157 = load i64, ptr %156, align 8, !tbaa !13
  %158 = sub nsw i64 0, %157
  %159 = load i32, ptr %14, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [110 x i64], ptr @Y, i64 0, i64 %160
  store i64 %158, ptr %161, align 8, !tbaa !13
  br label %162

162:                                              ; preds = %153
  %163 = load i32, ptr %14, align 4, !tbaa !5
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %14, align 4, !tbaa !5
  br label %148, !llvm.loop !23

165:                                              ; preds = %152
  call void @_Z5solvev()
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %166

166:                                              ; preds = %180, %165
  %167 = load i32, ptr %15, align 4, !tbaa !5
  %168 = load i32, ptr @N, align 4, !tbaa !5
  %169 = icmp slt i32 %167, %168
  br i1 %169, label %171, label %170

170:                                              ; preds = %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  br label %183

171:                                              ; preds = %166
  %172 = load i32, ptr %15, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [110 x i64], ptr @X, i64 0, i64 %173
  %175 = load i64, ptr %174, align 8, !tbaa !13
  %176 = sub nsw i64 0, %175
  %177 = load i32, ptr %15, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [110 x i64], ptr @X, i64 0, i64 %178
  store i64 %176, ptr %179, align 8, !tbaa !13
  br label %180

180:                                              ; preds = %171
  %181 = load i32, ptr %15, align 4, !tbaa !5
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %15, align 4, !tbaa !5
  br label %166, !llvm.loop !24

183:                                              ; preds = %170
  call void @_Z5solvev()
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %184

184:                                              ; preds = %198, %183
  %185 = load i32, ptr %16, align 4, !tbaa !5
  %186 = load i32, ptr @N, align 4, !tbaa !5
  %187 = icmp slt i32 %185, %186
  br i1 %187, label %189, label %188

188:                                              ; preds = %184
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %201

189:                                              ; preds = %184
  %190 = load i32, ptr %16, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [110 x i64], ptr @Y, i64 0, i64 %191
  %193 = load i64, ptr %192, align 8, !tbaa !13
  %194 = sub nsw i64 0, %193
  %195 = load i32, ptr %16, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [110 x i64], ptr @Y, i64 0, i64 %196
  store i64 %194, ptr %197, align 8, !tbaa !13
  br label %198

198:                                              ; preds = %189
  %199 = load i32, ptr %16, align 4, !tbaa !5
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %16, align 4, !tbaa !5
  br label %184, !llvm.loop !25

201:                                              ; preds = %188
  br label %115, !llvm.loop !26

202:                                              ; preds = %128
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt5fixedRSt8ios_base)
  %204 = call i32 @_ZSt12setprecisioni(i32 noundef 18)
  %205 = getelementptr inbounds %"struct.std::_Setprecision", ptr %17, i32 0, i32 0
  store i32 %204, ptr %205, align 4
  %206 = getelementptr inbounds %"struct.std::_Setprecision", ptr %17, i32 0, i32 0
  %207 = load i32, ptr %206, align 4
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %203, i32 %207)
  %209 = load i64, ptr @ans, align 8, !tbaa !13
  %210 = call noundef double @_ZSt4sqrtIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef %209)
  %211 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %208, double noundef %210)
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %211, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  %213 = load i32, ptr %1, align 4
  ret i32 %213
}

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

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212system_clock3nowEv() #6

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNSt6chrono13duration_castINS_8durationIlSt5ratioILl1ELl1000EEEElS2_ILl1ELl1000000000EEEENSt9enable_ifIXsr13__is_durationIT_EE5valueES7_E4typeERKNS1_IT0_T1_EE(ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNSt6chronomiINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6chrono8durationIlSt5ratioILl1ELl1000EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8)) #7 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt5fixedRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) #8

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef) #8

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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #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 = { 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 #7 = { 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 #8 = { inlinehint 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 #9 = { nounwind }

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

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


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

%"class.std::basic_ostream" = type { ptr, %"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_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::chrono::duration.7" = type { i64 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@N = external dso_local global i32, align 4
@X = external dso_local global [110 x i64], align 16
@Y = external dso_local global [110 x i64], align 16
@ans = external dso_local local_unnamed_addr global i64, align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6solve2v() local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5solvev() local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca %"class.std::chrono::time_point", align 8
  %2 = alloca %"class.std::chrono::time_point", align 8
  %3 = alloca %"class.std::chrono::duration.7", align 8
  %4 = alloca %"class.std::chrono::duration", align 8
  %5 = 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)
  %6 = load i32, ptr @N, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  %8 = tail call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  store i64 %8, ptr %1, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %9 = tail call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  tail call void @_Z6solve2v()
  %10 = load i32, ptr @N, align 4, !tbaa !5
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph49.preheader, label %._crit_edge50

.lr.ph49.preheader:                               ; preds = %._crit_edge
  %wide.trip.count = zext nneg i32 %10 to i64
  %min.iters.check = icmp ult i32 %10, 4
  br i1 %min.iters.check, label %.lr.ph49.preheader217, label %vector.ph

.lr.ph49.preheader217:                            ; preds = %middle.block, %.lr.ph49.preheader
  %indvars.iv80.ph = phi i64 [ 0, %.lr.ph49.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph49

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

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %12 = getelementptr inbounds [110 x i64], ptr @X, i64 0, i64 %index
  %13 = getelementptr inbounds i8, ptr %12, i64 16
  %wide.load = load <2 x i64>, ptr %12, align 16, !tbaa !9
  %wide.load118 = load <2 x i64>, ptr %13, align 16, !tbaa !9
  %14 = sub nsw <2 x i64> zeroinitializer, %wide.load
  %15 = sub nsw <2 x i64> zeroinitializer, %wide.load118
  store <2 x i64> %14, ptr %12, align 16, !tbaa !9
  store <2 x i64> %15, ptr %13, align 16, !tbaa !9
  %index.next = add nuw i64 %index, 4
  %16 = icmp eq i64 %index.next, %n.vec
  br i1 %16, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge50, label %.lr.ph49.preheader217

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %17 = getelementptr inbounds [110 x i64], ptr @X, i64 0, i64 %indvars.iv
  %18 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %17)
  %19 = getelementptr inbounds [110 x i64], ptr @Y, i64 0, i64 %indvars.iv
  %20 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %21 = load i32, ptr @N, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = icmp slt i64 %indvars.iv.next, %22
  br i1 %23, label %.lr.ph, label %._crit_edge, !llvm.loop !15

._crit_edge50:                                    ; preds = %.lr.ph49, %middle.block, %._crit_edge
  tail call void @_Z6solve2v()
  %24 = load i32, ptr @N, align 4, !tbaa !5
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph53.preheader, label %._crit_edge54

.lr.ph53.preheader:                               ; preds = %._crit_edge50
  %wide.trip.count86 = zext nneg i32 %24 to i64
  %min.iters.check121 = icmp ult i32 %24, 4
  br i1 %min.iters.check121, label %.lr.ph53.preheader216, label %vector.ph122

.lr.ph53.preheader216:                            ; preds = %middle.block119, %.lr.ph53.preheader
  %indvars.iv83.ph = phi i64 [ 0, %.lr.ph53.preheader ], [ %n.vec124, %middle.block119 ]
  br label %.lr.ph53

vector.ph122:                                     ; preds = %.lr.ph53.preheader
  %n.vec124 = and i64 %wide.trip.count86, 2147483644
  br label %vector.body126

vector.body126:                                   ; preds = %vector.body126, %vector.ph122
  %index127 = phi i64 [ 0, %vector.ph122 ], [ %index.next130, %vector.body126 ]
  %26 = getelementptr inbounds [110 x i64], ptr @Y, i64 0, i64 %index127
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  %wide.load128 = load <2 x i64>, ptr %26, align 16, !tbaa !9
  %wide.load129 = load <2 x i64>, ptr %27, align 16, !tbaa !9
  %28 = sub nsw <2 x i64> zeroinitializer, %wide.load128
  %29 = sub nsw <2 x i64> zeroinitializer, %wide.load129
  store <2 x i64> %28, ptr %26, align 16, !tbaa !9
  store <2 x i64> %29, ptr %27, align 16, !tbaa !9
  %index.next130 = add nuw i64 %index127, 4
  %30 = icmp eq i64 %index.next130, %n.vec124
  br i1 %30, label %middle.block119, label %vector.body126, !llvm.loop !16

middle.block119:                                  ; preds = %vector.body126
  %cmp.n131 = icmp eq i64 %n.vec124, %wide.trip.count86
  br i1 %cmp.n131, label %._crit_edge54, label %.lr.ph53.preheader216

.lr.ph49:                                         ; preds = %.lr.ph49.preheader217, %.lr.ph49
  %indvars.iv80 = phi i64 [ %indvars.iv.next81, %.lr.ph49 ], [ %indvars.iv80.ph, %.lr.ph49.preheader217 ]
  %31 = getelementptr inbounds [110 x i64], ptr @X, i64 0, i64 %indvars.iv80
  %32 = load i64, ptr %31, align 8, !tbaa !9
  %33 = sub nsw i64 0, %32
  store i64 %33, ptr %31, align 8, !tbaa !9
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next81, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge50, label %.lr.ph49, !llvm.loop !17

._crit_edge54:                                    ; preds = %.lr.ph53, %middle.block119, %._crit_edge50
  tail call void @_Z6solve2v()
  %34 = load i32, ptr @N, align 4, !tbaa !5
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %.lr.ph57.preheader, label %._crit_edge58

.lr.ph57.preheader:                               ; preds = %._crit_edge54
  %wide.trip.count91 = zext nneg i32 %34 to i64
  %min.iters.check134 = icmp ult i32 %34, 4
  br i1 %min.iters.check134, label %.lr.ph57.preheader215, label %vector.ph135

.lr.ph57.preheader215:                            ; preds = %middle.block132, %.lr.ph57.preheader
  %indvars.iv88.ph = phi i64 [ 0, %.lr.ph57.preheader ], [ %n.vec137, %middle.block132 ]
  br label %.lr.ph57

vector.ph135:                                     ; preds = %.lr.ph57.preheader
  %n.vec137 = and i64 %wide.trip.count91, 2147483644
  br label %vector.body139

vector.body139:                                   ; preds = %vector.body139, %vector.ph135
  %index140 = phi i64 [ 0, %vector.ph135 ], [ %index.next143, %vector.body139 ]
  %36 = getelementptr inbounds [110 x i64], ptr @X, i64 0, i64 %index140
  %37 = getelementptr inbounds i8, ptr %36, i64 16
  %wide.load141 = load <2 x i64>, ptr %36, align 16, !tbaa !9
  %wide.load142 = load <2 x i64>, ptr %37, align 16, !tbaa !9
  %38 = sub nsw <2 x i64> zeroinitializer, %wide.load141
  %39 = sub nsw <2 x i64> zeroinitializer, %wide.load142
  store <2 x i64> %38, ptr %36, align 16, !tbaa !9
  store <2 x i64> %39, ptr %37, align 16, !tbaa !9
  %index.next143 = add nuw i64 %index140, 4
  %40 = icmp eq i64 %index.next143, %n.vec137
  br i1 %40, label %middle.block132, label %vector.body139, !llvm.loop !18

middle.block132:                                  ; preds = %vector.body139
  %cmp.n144 = icmp eq i64 %n.vec137, %wide.trip.count91
  br i1 %cmp.n144, label %._crit_edge58, label %.lr.ph57.preheader215

.lr.ph53:                                         ; preds = %.lr.ph53.preheader216, %.lr.ph53
  %indvars.iv83 = phi i64 [ %indvars.iv.next84, %.lr.ph53 ], [ %indvars.iv83.ph, %.lr.ph53.preheader216 ]
  %41 = getelementptr inbounds [110 x i64], ptr @Y, i64 0, i64 %indvars.iv83
  %42 = load i64, ptr %41, align 8, !tbaa !9
  %43 = sub nsw i64 0, %42
  store i64 %43, ptr %41, align 8, !tbaa !9
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %exitcond87.not = icmp eq i64 %indvars.iv.next84, %wide.trip.count86
  br i1 %exitcond87.not, label %._crit_edge54, label %.lr.ph53, !llvm.loop !19

._crit_edge58:                                    ; preds = %.lr.ph57, %middle.block132, %._crit_edge54
  tail call void @_Z6solve2v()
  %44 = load i32, ptr @N, align 4, !tbaa !5
  %45 = icmp sgt i32 %44, 0
  br i1 %45, label %.lr.ph61.preheader, label %.preheader

.lr.ph61.preheader:                               ; preds = %._crit_edge58
  %wide.trip.count96 = zext nneg i32 %44 to i64
  %min.iters.check147 = icmp ult i32 %44, 4
  br i1 %min.iters.check147, label %.lr.ph61.preheader214, label %vector.ph148

.lr.ph61.preheader214:                            ; preds = %middle.block145, %.lr.ph61.preheader
  %indvars.iv93.ph = phi i64 [ 0, %.lr.ph61.preheader ], [ %n.vec150, %middle.block145 ]
  br label %.lr.ph61

vector.ph148:                                     ; preds = %.lr.ph61.preheader
  %n.vec150 = and i64 %wide.trip.count96, 2147483644
  br label %vector.body152

vector.body152:                                   ; preds = %vector.body152, %vector.ph148
  %index153 = phi i64 [ 0, %vector.ph148 ], [ %index.next156, %vector.body152 ]
  %46 = getelementptr inbounds [110 x i64], ptr @Y, i64 0, i64 %index153
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  %wide.load154 = load <2 x i64>, ptr %46, align 16, !tbaa !9
  %wide.load155 = load <2 x i64>, ptr %47, align 16, !tbaa !9
  %48 = sub nsw <2 x i64> zeroinitializer, %wide.load154
  %49 = sub nsw <2 x i64> zeroinitializer, %wide.load155
  store <2 x i64> %48, ptr %46, align 16, !tbaa !9
  store <2 x i64> %49, ptr %47, align 16, !tbaa !9
  %index.next156 = add nuw i64 %index153, 4
  %50 = icmp eq i64 %index.next156, %n.vec150
  br i1 %50, label %middle.block145, label %vector.body152, !llvm.loop !20

middle.block145:                                  ; preds = %vector.body152
  %cmp.n157 = icmp eq i64 %n.vec150, %wide.trip.count96
  br i1 %cmp.n157, label %.preheader, label %.lr.ph61.preheader214

.lr.ph57:                                         ; preds = %.lr.ph57.preheader215, %.lr.ph57
  %indvars.iv88 = phi i64 [ %indvars.iv.next89, %.lr.ph57 ], [ %indvars.iv88.ph, %.lr.ph57.preheader215 ]
  %51 = getelementptr inbounds [110 x i64], ptr @X, i64 0, i64 %indvars.iv88
  %52 = load i64, ptr %51, align 8, !tbaa !9
  %53 = sub nsw i64 0, %52
  store i64 %53, ptr %51, align 8, !tbaa !9
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %exitcond92.not = icmp eq i64 %indvars.iv.next89, %wide.trip.count91
  br i1 %exitcond92.not, label %._crit_edge58, label %.lr.ph57, !llvm.loop !21

.preheader:                                       ; preds = %.lr.ph61, %middle.block145, %._crit_edge58
  %54 = tail call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  store i64 %54, ptr %2, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %55 = call i64 @_ZNSt6chronomiINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %1)
  store i64 %55, ptr %4, align 8
  %56 = call i64 @_ZNSt6chrono13duration_castINS_8durationIlSt5ratioILl1ELl1000EEEElS2_ILl1ELl1000000000EEEENSt9enable_ifIXsr13__is_durationIT_EE5valueES7_E4typeERKNS1_IT0_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store i64 %56, ptr %3, align 8
  %57 = call noundef i64 @_ZNKSt6chrono8durationIlSt5ratioILl1ELl1000EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  %58 = icmp sgt i64 %57, 1989
  br i1 %58, label %._crit_edge78, label %.lr.ph77

.lr.ph61:                                         ; preds = %.lr.ph61.preheader214, %.lr.ph61
  %indvars.iv93 = phi i64 [ %indvars.iv.next94, %.lr.ph61 ], [ %indvars.iv93.ph, %.lr.ph61.preheader214 ]
  %59 = getelementptr inbounds [110 x i64], ptr @Y, i64 0, i64 %indvars.iv93
  %60 = load i64, ptr %59, align 8, !tbaa !9
  %61 = sub nsw i64 0, %60
  store i64 %61, ptr %59, align 8, !tbaa !9
  %indvars.iv.next94 = add nuw nsw i64 %indvars.iv93, 1
  %exitcond97.not = icmp eq i64 %indvars.iv.next94, %wide.trip.count96
  br i1 %exitcond97.not, label %.preheader, label %.lr.ph61, !llvm.loop !24

.loopexit:                                        ; preds = %.lr.ph76, %middle.block158, %._crit_edge73
  %62 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  store i64 %62, ptr %2, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %63 = call i64 @_ZNSt6chronomiINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %1)
  store i64 %63, ptr %4, align 8
  %64 = call i64 @_ZNSt6chrono13duration_castINS_8durationIlSt5ratioILl1ELl1000EEEElS2_ILl1ELl1000000000EEEENSt9enable_ifIXsr13__is_durationIT_EE5valueES7_E4typeERKNS1_IT0_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store i64 %64, ptr %3, align 8
  %65 = call noundef i64 @_ZNKSt6chrono8durationIlSt5ratioILl1ELl1000EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  %66 = icmp sgt i64 %65, 1989
  br i1 %66, label %._crit_edge78, label %.lr.ph77, !llvm.loop !25

.lr.ph77:                                         ; preds = %.preheader, %.loopexit
  call void @_Z5solvev()
  %67 = load i32, ptr @N, align 4, !tbaa !5
  %68 = icmp sgt i32 %67, 0
  br i1 %68, label %.lr.ph64.preheader, label %._crit_edge65

.lr.ph64.preheader:                               ; preds = %.lr.ph77
  %wide.trip.count101 = zext nneg i32 %67 to i64
  %min.iters.check199 = icmp ult i32 %67, 4
  br i1 %min.iters.check199, label %.lr.ph64.preheader213, label %vector.ph200

.lr.ph64.preheader213:                            ; preds = %middle.block197, %.lr.ph64.preheader
  %indvars.iv98.ph = phi i64 [ 0, %.lr.ph64.preheader ], [ %n.vec202, %middle.block197 ]
  br label %.lr.ph64

vector.ph200:                                     ; preds = %.lr.ph64.preheader
  %n.vec202 = and i64 %wide.trip.count101, 2147483644
  br label %vector.body204

vector.body204:                                   ; preds = %vector.body204, %vector.ph200
  %index205 = phi i64 [ 0, %vector.ph200 ], [ %index.next208, %vector.body204 ]
  %69 = getelementptr inbounds [110 x i64], ptr @X, i64 0, i64 %index205
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  %wide.load206 = load <2 x i64>, ptr %69, align 16, !tbaa !9
  %wide.load207 = load <2 x i64>, ptr %70, align 16, !tbaa !9
  %71 = sub nsw <2 x i64> zeroinitializer, %wide.load206
  %72 = sub nsw <2 x i64> zeroinitializer, %wide.load207
  store <2 x i64> %71, ptr %69, align 16, !tbaa !9
  store <2 x i64> %72, ptr %70, align 16, !tbaa !9
  %index.next208 = add nuw i64 %index205, 4
  %73 = icmp eq i64 %index.next208, %n.vec202
  br i1 %73, label %middle.block197, label %vector.body204, !llvm.loop !26

middle.block197:                                  ; preds = %vector.body204
  %cmp.n209 = icmp eq i64 %n.vec202, %wide.trip.count101
  br i1 %cmp.n209, label %._crit_edge65, label %.lr.ph64.preheader213

._crit_edge65:                                    ; preds = %.lr.ph64, %middle.block197, %.lr.ph77
  call void @_Z5solvev()
  %74 = load i32, ptr @N, align 4, !tbaa !5
  %75 = icmp sgt i32 %74, 0
  br i1 %75, label %.lr.ph68.preheader, label %._crit_edge69

.lr.ph68.preheader:                               ; preds = %._crit_edge65
  %wide.trip.count106 = zext nneg i32 %74 to i64
  %min.iters.check186 = icmp ult i32 %74, 4
  br i1 %min.iters.check186, label %.lr.ph68.preheader212, label %vector.ph187

.lr.ph68.preheader212:                            ; preds = %middle.block184, %.lr.ph68.preheader
  %indvars.iv103.ph = phi i64 [ 0, %.lr.ph68.preheader ], [ %n.vec189, %middle.block184 ]
  br label %.lr.ph68

vector.ph187:                                     ; preds = %.lr.ph68.preheader
  %n.vec189 = and i64 %wide.trip.count106, 2147483644
  br label %vector.body191

vector.body191:                                   ; preds = %vector.body191, %vector.ph187
  %index192 = phi i64 [ 0, %vector.ph187 ], [ %index.next195, %vector.body191 ]
  %76 = getelementptr inbounds [110 x i64], ptr @Y, i64 0, i64 %index192
  %77 = getelementptr inbounds i8, ptr %76, i64 16
  %wide.load193 = load <2 x i64>, ptr %76, align 16, !tbaa !9
  %wide.load194 = load <2 x i64>, ptr %77, align 16, !tbaa !9
  %78 = sub nsw <2 x i64> zeroinitializer, %wide.load193
  %79 = sub nsw <2 x i64> zeroinitializer, %wide.load194
  store <2 x i64> %78, ptr %76, align 16, !tbaa !9
  store <2 x i64> %79, ptr %77, align 16, !tbaa !9
  %index.next195 = add nuw i64 %index192, 4
  %80 = icmp eq i64 %index.next195, %n.vec189
  br i1 %80, label %middle.block184, label %vector.body191, !llvm.loop !27

middle.block184:                                  ; preds = %vector.body191
  %cmp.n196 = icmp eq i64 %n.vec189, %wide.trip.count106
  br i1 %cmp.n196, label %._crit_edge69, label %.lr.ph68.preheader212

.lr.ph64:                                         ; preds = %.lr.ph64.preheader213, %.lr.ph64
  %indvars.iv98 = phi i64 [ %indvars.iv.next99, %.lr.ph64 ], [ %indvars.iv98.ph, %.lr.ph64.preheader213 ]
  %81 = getelementptr inbounds [110 x i64], ptr @X, i64 0, i64 %indvars.iv98
  %82 = load i64, ptr %81, align 8, !tbaa !9
  %83 = sub nsw i64 0, %82
  store i64 %83, ptr %81, align 8, !tbaa !9
  %indvars.iv.next99 = add nuw nsw i64 %indvars.iv98, 1
  %exitcond102.not = icmp eq i64 %indvars.iv.next99, %wide.trip.count101
  br i1 %exitcond102.not, label %._crit_edge65, label %.lr.ph64, !llvm.loop !28

._crit_edge69:                                    ; preds = %.lr.ph68, %middle.block184, %._crit_edge65
  call void @_Z5solvev()
  %84 = load i32, ptr @N, align 4, !tbaa !5
  %85 = icmp sgt i32 %84, 0
  br i1 %85, label %.lr.ph72.preheader, label %._crit_edge73

.lr.ph72.preheader:                               ; preds = %._crit_edge69
  %wide.trip.count111 = zext nneg i32 %84 to i64
  %min.iters.check173 = icmp ult i32 %84, 4
  br i1 %min.iters.check173, label %.lr.ph72.preheader211, label %vector.ph174

.lr.ph72.preheader211:                            ; preds = %middle.block171, %.lr.ph72.preheader
  %indvars.iv108.ph = phi i64 [ 0, %.lr.ph72.preheader ], [ %n.vec176, %middle.block171 ]
  br label %.lr.ph72

vector.ph174:                                     ; preds = %.lr.ph72.preheader
  %n.vec176 = and i64 %wide.trip.count111, 2147483644
  br label %vector.body178

vector.body178:                                   ; preds = %vector.body178, %vector.ph174
  %index179 = phi i64 [ 0, %vector.ph174 ], [ %index.next182, %vector.body178 ]
  %86 = getelementptr inbounds [110 x i64], ptr @X, i64 0, i64 %index179
  %87 = getelementptr inbounds i8, ptr %86, i64 16
  %wide.load180 = load <2 x i64>, ptr %86, align 16, !tbaa !9
  %wide.load181 = load <2 x i64>, ptr %87, align 16, !tbaa !9
  %88 = sub nsw <2 x i64> zeroinitializer, %wide.load180
  %89 = sub nsw <2 x i64> zeroinitializer, %wide.load181
  store <2 x i64> %88, ptr %86, align 16, !tbaa !9
  store <2 x i64> %89, ptr %87, align 16, !tbaa !9
  %index.next182 = add nuw i64 %index179, 4
  %90 = icmp eq i64 %index.next182, %n.vec176
  br i1 %90, label %middle.block171, label %vector.body178, !llvm.loop !29

middle.block171:                                  ; preds = %vector.body178
  %cmp.n183 = icmp eq i64 %n.vec176, %wide.trip.count111
  br i1 %cmp.n183, label %._crit_edge73, label %.lr.ph72.preheader211

.lr.ph68:                                         ; preds = %.lr.ph68.preheader212, %.lr.ph68
  %indvars.iv103 = phi i64 [ %indvars.iv.next104, %.lr.ph68 ], [ %indvars.iv103.ph, %.lr.ph68.preheader212 ]
  %91 = getelementptr inbounds [110 x i64], ptr @Y, i64 0, i64 %indvars.iv103
  %92 = load i64, ptr %91, align 8, !tbaa !9
  %93 = sub nsw i64 0, %92
  store i64 %93, ptr %91, align 8, !tbaa !9
  %indvars.iv.next104 = add nuw nsw i64 %indvars.iv103, 1
  %exitcond107.not = icmp eq i64 %indvars.iv.next104, %wide.trip.count106
  br i1 %exitcond107.not, label %._crit_edge69, label %.lr.ph68, !llvm.loop !30

._crit_edge73:                                    ; preds = %.lr.ph72, %middle.block171, %._crit_edge69
  call void @_Z5solvev()
  %94 = load i32, ptr @N, align 4, !tbaa !5
  %95 = icmp sgt i32 %94, 0
  br i1 %95, label %.lr.ph76.preheader, label %.loopexit

.lr.ph76.preheader:                               ; preds = %._crit_edge73
  %wide.trip.count116 = zext nneg i32 %94 to i64
  %min.iters.check160 = icmp ult i32 %94, 4
  br i1 %min.iters.check160, label %.lr.ph76.preheader210, label %vector.ph161

.lr.ph76.preheader210:                            ; preds = %middle.block158, %.lr.ph76.preheader
  %indvars.iv113.ph = phi i64 [ 0, %.lr.ph76.preheader ], [ %n.vec163, %middle.block158 ]
  br label %.lr.ph76

vector.ph161:                                     ; preds = %.lr.ph76.preheader
  %n.vec163 = and i64 %wide.trip.count116, 2147483644
  br label %vector.body165

vector.body165:                                   ; preds = %vector.body165, %vector.ph161
  %index166 = phi i64 [ 0, %vector.ph161 ], [ %index.next169, %vector.body165 ]
  %96 = getelementptr inbounds [110 x i64], ptr @Y, i64 0, i64 %index166
  %97 = getelementptr inbounds i8, ptr %96, i64 16
  %wide.load167 = load <2 x i64>, ptr %96, align 16, !tbaa !9
  %wide.load168 = load <2 x i64>, ptr %97, align 16, !tbaa !9
  %98 = sub nsw <2 x i64> zeroinitializer, %wide.load167
  %99 = sub nsw <2 x i64> zeroinitializer, %wide.load168
  store <2 x i64> %98, ptr %96, align 16, !tbaa !9
  store <2 x i64> %99, ptr %97, align 16, !tbaa !9
  %index.next169 = add nuw i64 %index166, 4
  %100 = icmp eq i64 %index.next169, %n.vec163
  br i1 %100, label %middle.block158, label %vector.body165, !llvm.loop !31

middle.block158:                                  ; preds = %vector.body165
  %cmp.n170 = icmp eq i64 %n.vec163, %wide.trip.count116
  br i1 %cmp.n170, label %.loopexit, label %.lr.ph76.preheader210

.lr.ph72:                                         ; preds = %.lr.ph72.preheader211, %.lr.ph72
  %indvars.iv108 = phi i64 [ %indvars.iv.next109, %.lr.ph72 ], [ %indvars.iv108.ph, %.lr.ph72.preheader211 ]
  %101 = getelementptr inbounds [110 x i64], ptr @X, i64 0, i64 %indvars.iv108
  %102 = load i64, ptr %101, align 8, !tbaa !9
  %103 = sub nsw i64 0, %102
  store i64 %103, ptr %101, align 8, !tbaa !9
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %exitcond112.not = icmp eq i64 %indvars.iv.next109, %wide.trip.count111
  br i1 %exitcond112.not, label %._crit_edge73, label %.lr.ph72, !llvm.loop !32

.lr.ph76:                                         ; preds = %.lr.ph76.preheader210, %.lr.ph76
  %indvars.iv113 = phi i64 [ %indvars.iv.next114, %.lr.ph76 ], [ %indvars.iv113.ph, %.lr.ph76.preheader210 ]
  %104 = getelementptr inbounds [110 x i64], ptr @Y, i64 0, i64 %indvars.iv113
  %105 = load i64, ptr %104, align 8, !tbaa !9
  %106 = sub nsw i64 0, %105
  store i64 %106, ptr %104, align 8, !tbaa !9
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %exitcond117.not = icmp eq i64 %indvars.iv.next114, %wide.trip.count116
  br i1 %exitcond117.not, label %.loopexit, label %.lr.ph76, !llvm.loop !33

._crit_edge78:                                    ; preds = %.loopexit, %.preheader
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
  %108 = call i32 @_ZSt12setprecisioni(i32 noundef 18)
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %107, i32 %108)
  %110 = load i64, ptr @ans, align 8, !tbaa !9
  %111 = call noundef double @_ZSt4sqrtIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef %110)
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %109, double noundef %111)
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  ret i32 0
}

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

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212system_clock3nowEv() local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNSt6chrono13duration_castINS_8durationIlSt5ratioILl1ELl1000EEEElS2_ILl1ELl1000000000EEEENSt9enable_ifIXsr13__is_durationIT_EE5valueES7_E4typeERKNS1_IT0_T1_EE(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6chrono8durationIlSt5ratioILl1ELl1000EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt5fixedRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) local_unnamed_addr #7

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef) 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 = { 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 = { mustprogress 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 = { 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 #6 = { 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 #7 = { inlinehint 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 #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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12, !13, !14}
!17 = distinct !{!17, !12, !14, !13}
!18 = distinct !{!18, !12, !13, !14}
!19 = distinct !{!19, !12, !14, !13}
!20 = distinct !{!20, !12, !13, !14}
!21 = distinct !{!21, !12, !14, !13}
!22 = !{!23, !23, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = distinct !{!24, !12, !14, !13}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12, !13, !14}
!27 = distinct !{!27, !12, !13, !14}
!28 = distinct !{!28, !12, !14, !13}
!29 = distinct !{!29, !12, !13, !14}
!30 = distinct !{!30, !12, !14, !13}
!31 = distinct !{!31, !12, !13, !14}
!32 = distinct !{!32, !12, !14, !13}
!33 = distinct !{!33, !12, !14, !13}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SROAPass,SimplifyCFGPass,TailCallElimPass