; LLVM IR from lzyrapx/Competitive-Programming :: HDUOJ (2615（贪心）)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@val = external dso_local global [123 x i64], align 16
@sum = external dso_local global [123 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z5solvexxx(i64 noundef, i64 noundef, i64 noundef) #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  br label %22

22:                                               ; preds = %206, %0
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = getelementptr i8, ptr %24, i64 -24
  %26 = load i64, ptr %25, align 8
  %27 = getelementptr inbounds i8, ptr %23, i64 %26
  %28 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %27)
  br i1 %28, label %29, label %210

29:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 1, ptr %3, align 4, !tbaa !8
  br label %30

30:                                               ; preds = %40, %29
  %31 = load i32, ptr %3, align 4, !tbaa !8
  %32 = load i32, ptr %2, align 4, !tbaa !8
  %33 = icmp sle i32 %31, %32
  br i1 %33, label %35, label %34

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

35:                                               ; preds = %30
  %36 = load i32, ptr %3, align 4, !tbaa !8
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [123 x i64], ptr @val, i64 0, i64 %37
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %38)
  br label %40

40:                                               ; preds = %35
  %41 = load i32, ptr %3, align 4, !tbaa !8
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %3, align 4, !tbaa !8
  br label %30, !llvm.loop !11

43:                                               ; preds = %34
  store i64 0, ptr @sum, align 16, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 1, ptr %4, align 4, !tbaa !8
  br label %44

44:                                               ; preds = %63, %43
  %45 = load i32, ptr %4, align 4, !tbaa !8
  %46 = load i32, ptr %2, align 4, !tbaa !8
  %47 = icmp sle i32 %45, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %66

49:                                               ; preds = %44
  %50 = load i32, ptr %4, align 4, !tbaa !8
  %51 = sub nsw i32 %50, 1
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %52
  %54 = load i64, ptr %53, align 8, !tbaa !13
  %55 = load i32, ptr %4, align 4, !tbaa !8
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [123 x i64], ptr @val, i64 0, i64 %56
  %58 = load i64, ptr %57, align 8, !tbaa !13
  %59 = add nsw i64 %54, %58
  %60 = load i32, ptr %4, align 4, !tbaa !8
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %61
  store i64 %59, ptr %62, align 8, !tbaa !13
  br label %63

63:                                               ; preds = %49
  %64 = load i32, ptr %4, align 4, !tbaa !8
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %4, align 4, !tbaa !8
  br label %44, !llvm.loop !15

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

67:                                               ; preds = %203, %66
  %68 = load i32, ptr %6, align 4, !tbaa !8
  %69 = load i32, ptr %2, align 4, !tbaa !8
  %70 = sub nsw i32 %69, 1
  %71 = icmp sle i32 %68, %70
  br i1 %71, label %73, label %72

72:                                               ; preds = %67
  store i32 10, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %206

73:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store i64 0, ptr %8, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %74 = load i32, ptr %6, align 4, !tbaa !8
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %10, align 4, !tbaa !8
  br label %76

76:                                               ; preds = %135, %73
  %77 = load i32, ptr %10, align 4, !tbaa !8
  %78 = load i32, ptr %2, align 4, !tbaa !8
  %79 = sub nsw i32 %78, 1
  %80 = icmp sle i32 %77, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %76
  store i32 13, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %138

82:                                               ; preds = %76
  %83 = load i32, ptr %6, align 4, !tbaa !8
  %84 = load i32, ptr %10, align 4, !tbaa !8
  %85 = icmp eq i32 %83, %84
  br i1 %85, label %86, label %87

86:                                               ; preds = %82
  br label %135

87:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %88 = load i32, ptr %6, align 4, !tbaa !8
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %89
  %91 = load i64, ptr %90, align 8, !tbaa !13
  store i64 %91, ptr %11, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %92 = load i32, ptr %10, align 4, !tbaa !8
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %93
  %95 = load i64, ptr %94, align 8, !tbaa !13
  %96 = load i32, ptr %6, align 4, !tbaa !8
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %97
  %99 = load i64, ptr %98, align 8, !tbaa !13
  %100 = sub nsw i64 %95, %99
  store i64 %100, ptr %12, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %101 = load i32, ptr %2, align 4, !tbaa !8
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %102
  %104 = load i64, ptr %103, align 8, !tbaa !13
  %105 = load i32, ptr %10, align 4, !tbaa !8
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %106
  %108 = load i64, ptr %107, align 8, !tbaa !13
  %109 = sub nsw i64 %104, %108
  store i64 %109, ptr %13, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %110 = load i64, ptr %11, align 8, !tbaa !13
  %111 = load i64, ptr %12, align 8, !tbaa !13
  %112 = load i64, ptr %13, align 8, !tbaa !13
  %113 = call noundef i64 @_Z5solvexxx(i64 noundef %110, i64 noundef %111, i64 noundef %112)
  store i64 %113, ptr %14, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %114)
  %116 = load i64, ptr %115, align 8, !tbaa !13
  store i64 %116, ptr %15, align 8, !tbaa !13
  %117 = load i64, ptr %14, align 8, !tbaa !13
  %118 = load i64, ptr %9, align 8, !tbaa !13
  %119 = icmp sgt i64 %117, %118
  br i1 %119, label %120, label %123

120:                                              ; preds = %87
  %121 = load i64, ptr %15, align 8, !tbaa !13
  store i64 %121, ptr %8, align 8, !tbaa !13
  %122 = load i64, ptr %14, align 8, !tbaa !13
  store i64 %122, ptr %9, align 8, !tbaa !13
  br label %134

123:                                              ; preds = %87
  %124 = load i64, ptr %14, align 8, !tbaa !13
  %125 = load i64, ptr %9, align 8, !tbaa !13
  %126 = icmp eq i64 %124, %125
  br i1 %126, label %127, label %133

127:                                              ; preds = %123
  %128 = load i64, ptr %15, align 8, !tbaa !13
  %129 = load i64, ptr %8, align 8, !tbaa !13
  %130 = icmp slt i64 %128, %129
  br i1 %130, label %131, label %133

131:                                              ; preds = %127
  %132 = load i64, ptr %15, align 8, !tbaa !13
  store i64 %132, ptr %8, align 8, !tbaa !13
  br label %133

133:                                              ; preds = %131, %127, %123
  br label %134

134:                                              ; preds = %133, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %135

135:                                              ; preds = %134, %86
  %136 = load i32, ptr %10, align 4, !tbaa !8
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %10, align 4, !tbaa !8
  br label %76, !llvm.loop !16

138:                                              ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 1, ptr %16, align 4, !tbaa !8
  br label %139

139:                                              ; preds = %197, %138
  %140 = load i32, ptr %16, align 4, !tbaa !8
  %141 = load i32, ptr %6, align 4, !tbaa !8
  %142 = icmp sle i32 %140, %141
  br i1 %142, label %144, label %143

143:                                              ; preds = %139
  store i32 16, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %200

144:                                              ; preds = %139
  %145 = load i32, ptr %6, align 4, !tbaa !8
  %146 = load i32, ptr %16, align 4, !tbaa !8
  %147 = icmp eq i32 %145, %146
  br i1 %147, label %148, label %149

148:                                              ; preds = %144
  br label %197

149:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %150 = load i32, ptr %16, align 4, !tbaa !8
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %151
  %153 = load i64, ptr %152, align 8, !tbaa !13
  store i64 %153, ptr %17, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %154 = load i32, ptr %6, align 4, !tbaa !8
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %155
  %157 = load i64, ptr %156, align 8, !tbaa !13
  %158 = load i32, ptr %16, align 4, !tbaa !8
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %159
  %161 = load i64, ptr %160, align 8, !tbaa !13
  %162 = sub nsw i64 %157, %161
  store i64 %162, ptr %18, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %163 = load i32, ptr %2, align 4, !tbaa !8
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %164
  %166 = load i64, ptr %165, align 8, !tbaa !13
  %167 = load i32, ptr %6, align 4, !tbaa !8
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %168
  %170 = load i64, ptr %169, align 8, !tbaa !13
  %171 = sub nsw i64 %166, %170
  store i64 %171, ptr %19, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %172 = load i64, ptr %17, align 8, !tbaa !13
  %173 = load i64, ptr %18, align 8, !tbaa !13
  %174 = load i64, ptr %19, align 8, !tbaa !13
  %175 = call noundef i64 @_Z5solvexxx(i64 noundef %172, i64 noundef %173, i64 noundef %174)
  store i64 %175, ptr %20, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %176)
  %178 = load i64, ptr %177, align 8, !tbaa !13
  store i64 %178, ptr %21, align 8, !tbaa !13
  %179 = load i64, ptr %20, align 8, !tbaa !13
  %180 = load i64, ptr %9, align 8, !tbaa !13
  %181 = icmp sgt i64 %179, %180
  br i1 %181, label %182, label %185

182:                                              ; preds = %149
  %183 = load i64, ptr %21, align 8, !tbaa !13
  store i64 %183, ptr %8, align 8, !tbaa !13
  %184 = load i64, ptr %20, align 8, !tbaa !13
  store i64 %184, ptr %9, align 8, !tbaa !13
  br label %196

185:                                              ; preds = %149
  %186 = load i64, ptr %20, align 8, !tbaa !13
  %187 = load i64, ptr %9, align 8, !tbaa !13
  %188 = icmp eq i64 %186, %187
  br i1 %188, label %189, label %195

189:                                              ; preds = %185
  %190 = load i64, ptr %21, align 8, !tbaa !13
  %191 = load i64, ptr %8, align 8, !tbaa !13
  %192 = icmp slt i64 %190, %191
  br i1 %192, label %193, label %195

193:                                              ; preds = %189
  %194 = load i64, ptr %21, align 8, !tbaa !13
  store i64 %194, ptr %8, align 8, !tbaa !13
  br label %195

195:                                              ; preds = %193, %189, %185
  br label %196

196:                                              ; preds = %195, %182
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %197

197:                                              ; preds = %196, %148
  %198 = load i32, ptr %16, align 4, !tbaa !8
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %16, align 4, !tbaa !8
  br label %139, !llvm.loop !17

200:                                              ; preds = %143
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %202 = load i64, ptr %201, align 8, !tbaa !13
  store i64 %202, ptr %5, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %203

203:                                              ; preds = %200
  %204 = load i32, ptr %6, align 4, !tbaa !8
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %6, align 4, !tbaa !8
  br label %67, !llvm.loop !18

206:                                              ; preds = %72
  %207 = load i64, ptr %5, align 8, !tbaa !13
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %207)
  %209 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %208, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %22, !llvm.loop !19

210:                                              ; preds = %22
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %211 = load i32, ptr %1, align 4
  ret i32 %211
}

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

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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #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)) #5

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

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

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


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@val = external dso_local global [123 x i64], align 16
@sum = external dso_local local_unnamed_addr global [123 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  %10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = getelementptr i8, ptr %11, i64 -24
  %13 = load i64, ptr %12, align 8
  %14 = getelementptr inbounds i8, ptr %10, i64 %13
  %15 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %14)
  br i1 %15, label %.preheader63, label %._crit_edge84

.preheader63:                                     ; preds = %0, %._crit_edge83
  %16 = load i32, ptr %1, align 4, !tbaa !8
  %.not64 = icmp slt i32 %16, 1
  br i1 %.not64, label %._crit_edge.thread, label %.lr.ph

._crit_edge.thread:                               ; preds = %.preheader63
  store i64 0, ptr @sum, align 16, !tbaa !11
  br label %._crit_edge70.thread

._crit_edge:                                      ; preds = %.lr.ph
  store i64 0, ptr @sum, align 16, !tbaa !11
  %.not5666 = icmp slt i32 %21, 1
  br i1 %.not5666, label %._crit_edge70.thread, label %.lr.ph69.preheader

.lr.ph69.preheader:                               ; preds = %._crit_edge
  %17 = zext nneg i32 %21 to i64
  %xtraiter = and i64 %17, 3
  %18 = icmp ult i32 %21, 4
  br i1 %18, label %._crit_edge70.unr-lcssa, label %.lr.ph69.preheader.new

.lr.ph69.preheader.new:                           ; preds = %.lr.ph69.preheader
  %unroll_iter = and i64 %17, 2147483644
  br label %.lr.ph69

.lr.ph:                                           ; preds = %.preheader63, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.preheader63 ]
  %19 = getelementptr inbounds [123 x i64], ptr @val, i64 0, i64 %indvars.iv
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %21 = load i32, ptr %1, align 4, !tbaa !8
  %22 = sext i32 %21 to i64
  %.not.not = icmp slt i64 %indvars.iv, %22
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge70.thread:                             ; preds = %._crit_edge.thread, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  store i64 0, ptr %2, align 8, !tbaa !11
  br label %._crit_edge83

._crit_edge70.unr-lcssa:                          ; preds = %.lr.ph69, %.lr.ph69.preheader
  %.unr = phi i64 [ 0, %.lr.ph69.preheader ], [ %43, %.lr.ph69 ]
  %indvars.iv87.unr = phi i64 [ 1, %.lr.ph69.preheader ], [ %indvars.iv.next88.3, %.lr.ph69 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge70, label %.lr.ph69.epil

.lr.ph69.epil:                                    ; preds = %._crit_edge70.unr-lcssa, %.lr.ph69.epil
  %23 = phi i64 [ %26, %.lr.ph69.epil ], [ %.unr, %._crit_edge70.unr-lcssa ]
  %indvars.iv87.epil = phi i64 [ %indvars.iv.next88.epil, %.lr.ph69.epil ], [ %indvars.iv87.unr, %._crit_edge70.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph69.epil ], [ 0, %._crit_edge70.unr-lcssa ]
  %24 = getelementptr inbounds [123 x i64], ptr @val, i64 0, i64 %indvars.iv87.epil
  %25 = load i64, ptr %24, align 8, !tbaa !11
  %26 = add nsw i64 %25, %23
  %27 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %indvars.iv87.epil
  store i64 %26, ptr %27, align 8, !tbaa !11
  %indvars.iv.next88.epil = add nuw nsw i64 %indvars.iv87.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge70, label %.lr.ph69.epil, !llvm.loop !15

._crit_edge70:                                    ; preds = %.lr.ph69.epil, %._crit_edge70.unr-lcssa
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  store i64 0, ptr %2, align 8, !tbaa !11
  %.not57.not79.not = icmp eq i32 %21, 1
  br i1 %.not57.not79.not, label %._crit_edge83, label %.lr.ph82

.lr.ph69:                                         ; preds = %.lr.ph69, %.lr.ph69.preheader.new
  %28 = phi i64 [ 0, %.lr.ph69.preheader.new ], [ %43, %.lr.ph69 ]
  %indvars.iv87 = phi i64 [ 1, %.lr.ph69.preheader.new ], [ %indvars.iv.next88.3, %.lr.ph69 ]
  %niter = phi i64 [ 0, %.lr.ph69.preheader.new ], [ %niter.next.3, %.lr.ph69 ]
  %29 = getelementptr inbounds [123 x i64], ptr @val, i64 0, i64 %indvars.iv87
  %30 = load i64, ptr %29, align 8, !tbaa !11
  %31 = add nsw i64 %30, %28
  %32 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %indvars.iv87
  store i64 %31, ptr %32, align 8, !tbaa !11
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %33 = getelementptr inbounds [123 x i64], ptr @val, i64 0, i64 %indvars.iv.next88
  %34 = load i64, ptr %33, align 8, !tbaa !11
  %35 = add nsw i64 %34, %31
  %36 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %indvars.iv.next88
  store i64 %35, ptr %36, align 8, !tbaa !11
  %indvars.iv.next88.1 = add nuw nsw i64 %indvars.iv87, 2
  %37 = getelementptr inbounds [123 x i64], ptr @val, i64 0, i64 %indvars.iv.next88.1
  %38 = load i64, ptr %37, align 8, !tbaa !11
  %39 = add nsw i64 %38, %35
  %40 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %indvars.iv.next88.1
  store i64 %39, ptr %40, align 8, !tbaa !11
  %indvars.iv.next88.2 = add nuw nsw i64 %indvars.iv87, 3
  %41 = getelementptr inbounds [123 x i64], ptr @val, i64 0, i64 %indvars.iv.next88.2
  %42 = load i64, ptr %41, align 8, !tbaa !11
  %43 = add nsw i64 %42, %39
  %44 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %indvars.iv.next88.2
  store i64 %43, ptr %44, align 8, !tbaa !11
  %indvars.iv.next88.3 = add nuw nsw i64 %indvars.iv87, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge70.unr-lcssa, label %.lr.ph69, !llvm.loop !17

._crit_edge83:                                    ; preds = %81, %._crit_edge70.thread, %._crit_edge70
  %45 = phi i64 [ 0, %._crit_edge70 ], [ 0, %._crit_edge70.thread ], [ %83, %81 ]
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %45)
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = getelementptr i8, ptr %49, i64 -24
  %51 = load i64, ptr %50, align 8
  %52 = getelementptr inbounds i8, ptr %48, i64 %51
  %53 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %52)
  br i1 %53, label %.preheader63, label %._crit_edge84, !llvm.loop !18

.lr.ph82:                                         ; preds = %._crit_edge70, %81
  %54 = phi i32 [ %84, %81 ], [ %21, %._crit_edge70 ]
  %indvars.iv102 = phi i64 [ %indvars.iv.next103, %81 ], [ 1, %._crit_edge70 ]
  %indvars.iv90 = phi i64 [ %indvars.iv.next91, %81 ], [ 2, %._crit_edge70 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  store i64 0, ptr %3, align 8, !tbaa !11
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %55 = sext i32 %54 to i64
  %.not58.not71 = icmp slt i64 %indvars.iv.next103, %55
  br i1 %.not58.not71, label %.lr.ph75, label %.preheader

.lr.ph75:                                         ; preds = %.lr.ph82
  %56 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %indvars.iv102
  br label %58

.preheader:                                       ; preds = %79, %.lr.ph82
  %.049.lcssa = phi i64 [ 0, %.lr.ph82 ], [ %.1, %79 ]
  %57 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %indvars.iv102
  br label %86

58:                                               ; preds = %79, %.lr.ph75
  %59 = phi i32 [ %54, %.lr.ph75 ], [ %.pre, %79 ]
  %indvars.iv92 = phi i64 [ %indvars.iv90, %.lr.ph75 ], [ %indvars.iv.next93, %79 ]
  %.04972 = phi i64 [ 0, %.lr.ph75 ], [ %.1, %79 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %60 = load i64, ptr %56, align 8, !tbaa !11
  store i64 %60, ptr %4, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %61 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %indvars.iv92
  %62 = load i64, ptr %61, align 8, !tbaa !11
  %63 = sub nsw i64 %62, %60
  store i64 %63, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %64 = sext i32 %59 to i64
  %65 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %64
  %66 = load i64, ptr %65, align 8, !tbaa !11
  %67 = sub nsw i64 %66, %62
  store i64 %67, ptr %6, align 8, !tbaa !11
  %68 = call noundef i64 @_Z5solvexxx(i64 noundef %60, i64 noundef %63, i64 noundef %67)
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %69)
  %71 = load i64, ptr %70, align 8, !tbaa !11
  %72 = icmp sgt i64 %68, %.04972
  br i1 %72, label %73, label %74

73:                                               ; preds = %58
  store i64 %71, ptr %3, align 8, !tbaa !11
  br label %79

74:                                               ; preds = %58
  %75 = icmp eq i64 %68, %.04972
  %76 = load i64, ptr %3, align 8
  %77 = icmp slt i64 %71, %76
  %or.cond = select i1 %75, i1 %77, i1 false
  br i1 %or.cond, label %78, label %79

78:                                               ; preds = %74
  store i64 %71, ptr %3, align 8, !tbaa !11
  br label %79

79:                                               ; preds = %73, %78, %74
  %.1 = phi i64 [ %68, %73 ], [ %.04972, %78 ], [ %.04972, %74 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %.pre = load i32, ptr %1, align 4, !tbaa !8
  %indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
  %80 = trunc nuw i64 %indvars.iv.next93 to i32
  %.not58.not = icmp sgt i32 %.pre, %80
  br i1 %.not58.not, label %58, label %.preheader, !llvm.loop !19

81:                                               ; preds = %110
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %83 = load i64, ptr %82, align 8, !tbaa !11
  store i64 %83, ptr %2, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %84 = load i32, ptr %1, align 4, !tbaa !8
  %85 = sext i32 %84 to i64
  %.not57.not = icmp slt i64 %indvars.iv.next103, %85
  %indvars.iv.next91 = add nuw nsw i64 %indvars.iv90, 1
  br i1 %.not57.not, label %.lr.ph82, label %._crit_edge83, !llvm.loop !20

86:                                               ; preds = %.preheader, %110
  %indvars.iv95 = phi i64 [ 1, %.preheader ], [ %indvars.iv.next96, %110 ]
  %.377 = phi i64 [ %.049.lcssa, %.preheader ], [ %.5, %110 ]
  %87 = icmp eq i64 %indvars.iv102, %indvars.iv95
  br i1 %87, label %110, label %88

88:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %89 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %indvars.iv95
  %90 = load i64, ptr %89, align 8, !tbaa !11
  store i64 %90, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %91 = load i64, ptr %57, align 8, !tbaa !11
  %92 = sub nsw i64 %91, %90
  store i64 %92, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %93 = load i32, ptr %1, align 4, !tbaa !8
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [123 x i64], ptr @sum, i64 0, i64 %94
  %96 = load i64, ptr %95, align 8, !tbaa !11
  %97 = sub nsw i64 %96, %91
  store i64 %97, ptr %9, align 8, !tbaa !11
  %98 = call noundef i64 @_Z5solvexxx(i64 noundef %90, i64 noundef %92, i64 noundef %97)
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %99)
  %101 = load i64, ptr %100, align 8, !tbaa !11
  %102 = icmp sgt i64 %98, %.377
  br i1 %102, label %103, label %104

103:                                              ; preds = %88
  store i64 %101, ptr %3, align 8, !tbaa !11
  br label %109

104:                                              ; preds = %88
  %105 = icmp eq i64 %98, %.377
  %106 = load i64, ptr %3, align 8
  %107 = icmp slt i64 %101, %106
  %or.cond62 = select i1 %105, i1 %107, i1 false
  br i1 %or.cond62, label %108, label %109

108:                                              ; preds = %104
  store i64 %101, ptr %3, align 8, !tbaa !11
  br label %109

109:                                              ; preds = %104, %108, %103
  %.4 = phi i64 [ %98, %103 ], [ %.377, %108 ], [ %.377, %104 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %110

110:                                              ; preds = %86, %109
  %.5 = phi i64 [ %.377, %86 ], [ %.4, %109 ]
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
  %exitcond101.not = icmp eq i64 %indvars.iv.next96, %indvars.iv90
  br i1 %exitcond101.not, label %81, label %86, !llvm.loop !21

._crit_edge84:                                    ; preds = %._crit_edge83, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0
}

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

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: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) 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)) #5

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

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

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


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