; LLVM IR from eyangch/competitive-programming :: Codeforces/1368 (d)

; 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" }
%"class.std::bitset" = type { %"struct.std::_Base_bitset" }
%"struct.std::_Base_bitset" = type { i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca [64 x i64], align 16
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::bitset", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i8, align 1
  %21 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %22 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %23 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %24 = getelementptr i8, ptr %23, i64 -24
  %25 = load i64, ptr %24, align 8
  %26 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %25
  %27 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %26, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #10
  %28 = 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)
  %29 = load i32, ptr %2, align 4, !tbaa !8
  %30 = zext i32 %29 to i64
  %31 = call ptr @llvm.stacksave.p0()
  store ptr %31, ptr %3, align 8
  %32 = alloca i64, i64 %30, align 16
  store i64 %30, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #10
  store i32 0, ptr %5, align 4, !tbaa !8
  br label %33

33:                                               ; preds = %43, %0
  %34 = load i32, ptr %5, align 4, !tbaa !8
  %35 = load i32, ptr %2, align 4, !tbaa !8
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #10
  br label %46

38:                                               ; preds = %33
  %39 = load i32, ptr %5, align 4, !tbaa !8
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds i64, ptr %32, i64 %40
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %41)
  br label %43

43:                                               ; preds = %38
  %44 = load i32, ptr %5, align 4, !tbaa !8
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %5, align 4, !tbaa !8
  br label %33, !llvm.loop !11

46:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 512, ptr %6) #10
  %47 = getelementptr inbounds [64 x i64], ptr %6, i64 0, i64 0
  %48 = getelementptr inbounds [64 x i64], ptr %6, i64 0, i64 0
  %49 = getelementptr inbounds i64, ptr %48, i64 64
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  store i32 0, ptr %7, align 4, !tbaa !8
  call void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef %47, ptr noundef %49, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  store i32 0, ptr %8, align 4, !tbaa !8
  br label %50

50:                                               ; preds = %86, %46
  %51 = load i32, ptr %8, align 4, !tbaa !8
  %52 = load i32, ptr %2, align 4, !tbaa !8
  %53 = icmp slt i32 %51, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  br label %89

55:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #10
  %56 = load i32, ptr %8, align 4, !tbaa !8
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds i64, ptr %32, i64 %57
  %59 = load i64, ptr %58, align 8, !tbaa !13
  call void @_ZNSt6bitsetILm64EEC2Ey(ptr noundef nonnull align 8 dereferenceable(8) %10, i64 noundef %59) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #10
  call void @_ZNKSt6bitsetILm64EE9to_stringB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #10
  store i32 0, ptr %12, align 4, !tbaa !8
  br label %60

60:                                               ; preds = %78, %55
  %61 = load i32, ptr %12, align 4, !tbaa !8
  %62 = icmp slt i32 %61, 64
  br i1 %62, label %64, label %63

63:                                               ; preds = %60
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  br label %85

64:                                               ; preds = %60
  %65 = load i32, ptr %12, align 4, !tbaa !8
  %66 = sext i32 %65 to i64
  %67 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %11, i64 noundef %66)
          to label %68 unwind label %81

68:                                               ; preds = %64
  %69 = load i8, ptr %67, align 1, !tbaa !15
  %70 = sext i8 %69 to i32
  %71 = sub nsw i32 %70, 48
  %72 = sext i32 %71 to i64
  %73 = load i32, ptr %12, align 4, !tbaa !8
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [64 x i64], ptr %6, i64 0, i64 %74
  %76 = load i64, ptr %75, align 8, !tbaa !13
  %77 = add nsw i64 %76, %72
  store i64 %77, ptr %75, align 8, !tbaa !13
  br label %78

78:                                               ; preds = %68
  %79 = load i32, ptr %12, align 4, !tbaa !8
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %12, align 4, !tbaa !8
  br label %60, !llvm.loop !16

81:                                               ; preds = %64
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %13, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 512, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #10
  br label %166

85:                                               ; preds = %63
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  br label %86

86:                                               ; preds = %85
  %87 = load i32, ptr %8, align 4, !tbaa !8
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %8, align 4, !tbaa !8
  br label %50, !llvm.loop !17

89:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  store i64 0, ptr %15, align 8, !tbaa !13
  br label %90

90:                                               ; preds = %159, %89
  br label %91

91:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  store i64 0, ptr %16, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #10
  store i32 0, ptr %17, align 4, !tbaa !8
  br label %92

92:                                               ; preds = %125, %91
  %93 = load i32, ptr %17, align 4, !tbaa !8
  %94 = icmp slt i32 %93, 64
  br i1 %94, label %96, label %95

95:                                               ; preds = %92
  store i32 13, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #10
  br label %128

96:                                               ; preds = %92
  %97 = load i32, ptr %17, align 4, !tbaa !8
  %98 = sub nsw i32 64, %97
  %99 = sub nsw i32 %98, 1
  %100 = sitofp i32 %99 to x86_fp80
  %101 = call x86_fp80 @powl(x86_fp80 noundef 0xK40008000000000000000, x86_fp80 noundef %100) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #10
  store i64 1, ptr %18, align 8, !tbaa !13
  %102 = load i32, ptr %17, align 4, !tbaa !8
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [64 x i64], ptr %6, i64 0, i64 %103
  %105 = 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) %104)
  %106 = load i64, ptr %105, align 8, !tbaa !13
  %107 = sitofp i64 %106 to x86_fp80
  %108 = load i64, ptr %16, align 8, !tbaa !13
  %109 = sitofp i64 %108 to x86_fp80
  %110 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %101, x86_fp80 %107, x86_fp80 %109)
  %111 = fptosi x86_fp80 %110 to i64
  store i64 %111, ptr %16, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  %112 = load i32, ptr %17, align 4, !tbaa !8
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [64 x i64], ptr %6, i64 0, i64 %113
  %115 = load i64, ptr %114, align 8, !tbaa !13
  %116 = add nsw i64 %115, -1
  store i64 %116, ptr %114, align 8, !tbaa !13
  %117 = load i32, ptr %17, align 4, !tbaa !8
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [64 x i64], ptr %6, i64 0, i64 %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #10
  store i64 0, ptr %19, align 8, !tbaa !13
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %121 = load i64, ptr %120, align 8, !tbaa !13
  %122 = load i32, ptr %17, align 4, !tbaa !8
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [64 x i64], ptr %6, i64 0, i64 %123
  store i64 %121, ptr %124, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  br label %125

125:                                              ; preds = %96
  %126 = load i32, ptr %17, align 4, !tbaa !8
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %17, align 4, !tbaa !8
  br label %92, !llvm.loop !18

128:                                              ; preds = %95
  %129 = load i64, ptr %16, align 8, !tbaa !13
  %130 = sitofp i64 %129 to x86_fp80
  %131 = call x86_fp80 @powl(x86_fp80 noundef %130, x86_fp80 noundef 0xK40008000000000000000) #10
  %132 = load i64, ptr %15, align 8, !tbaa !13
  %133 = sitofp i64 %132 to x86_fp80
  %134 = fadd x86_fp80 %133, %131
  %135 = fptosi x86_fp80 %134 to i64
  store i64 %135, ptr %15, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #10
  store i8 1, ptr %20, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #10
  store i32 0, ptr %21, align 4, !tbaa !8
  br label %136

136:                                              ; preds = %148, %128
  %137 = load i32, ptr %21, align 4, !tbaa !8
  %138 = icmp slt i32 %137, 64
  br i1 %138, label %140, label %139

139:                                              ; preds = %136
  store i32 16, ptr %9, align 4
  br label %151

140:                                              ; preds = %136
  %141 = load i32, ptr %21, align 4, !tbaa !8
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [64 x i64], ptr %6, i64 0, i64 %142
  %144 = load i64, ptr %143, align 8, !tbaa !13
  %145 = icmp sgt i64 %144, 0
  br i1 %145, label %146, label %147

146:                                              ; preds = %140
  store i8 0, ptr %20, align 1, !tbaa !19
  store i32 16, ptr %9, align 4
  br label %151

147:                                              ; preds = %140
  br label %148

148:                                              ; preds = %147
  %149 = load i32, ptr %21, align 4, !tbaa !8
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %21, align 4, !tbaa !8
  br label %136, !llvm.loop !21

151:                                              ; preds = %146, %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #10
  br label %152

152:                                              ; preds = %151
  %153 = load i8, ptr %20, align 1, !tbaa !19, !range !22, !noundef !23
  %154 = trunc i8 %153 to i1
  br i1 %154, label %155, label %156

155:                                              ; preds = %152
  store i32 12, ptr %9, align 4
  br label %157

156:                                              ; preds = %152
  store i32 0, ptr %9, align 4
  br label %157

157:                                              ; preds = %156, %155
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  %158 = load i32, ptr %9, align 4
  switch i32 %158, label %171 [
    i32 0, label %159
    i32 12, label %160
  ]

159:                                              ; preds = %157
  br label %90, !llvm.loop !24

160:                                              ; preds = %157
  %161 = load i64, ptr %15, align 8, !tbaa !13
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %161)
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %162, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 512, ptr %6) #10
  %164 = load ptr, ptr %3, align 8
  call void @llvm.stackrestore.p0(ptr %164)
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #10
  %165 = load i32, ptr %1, align 4
  ret i32 %165

166:                                              ; preds = %81
  %167 = load ptr, ptr %13, align 8
  %168 = load i32, ptr %14, align 4
  %169 = insertvalue { ptr, i32 } poison, ptr %167, 0
  %170 = insertvalue { ptr, i32 } %169, i32 %168, 1
  resume { ptr, i32 } %170

171:                                              ; preds = %157
  unreachable
}

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm64EEC2Ey(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) unnamed_addr #2 align 2

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare x86_fp80 @powl(x86_fp80 noundef, x86_fp80 noundef) #7

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #9

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { 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 = !{!10, !10, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = !{!20, !20, i64 0}
!20 = !{!"bool", !10, i64 0}
!21 = distinct !{!21, !12}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = distinct !{!24, !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" }
%"class.std::bitset" = type { %"struct.std::_Base_bitset" }
%"struct.std::_Base_bitset" = type { i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca [64 x i64], align 16
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::bitset", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %9 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %10 = getelementptr i8, ptr %9, i64 -24
  %11 = load i64, ptr %10, align 8
  %12 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %11
  %13 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %12, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #9
  %14 = 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)
  %15 = load i32, ptr %1, align 4, !tbaa !8
  %16 = zext i32 %15 to i64
  %17 = call ptr @llvm.stacksave.p0()
  %18 = alloca i64, i64 %16, align 16
  %19 = load i32, ptr %1, align 4, !tbaa !8
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %2) #9
  %21 = getelementptr inbounds i8, ptr %2, i64 512
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  store i32 0, ptr %3, align 4, !tbaa !8
  call void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef nonnull %2, ptr noundef nonnull %21, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  %22 = load i32, ptr %1, align 4, !tbaa !8
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph39, label %.preheader

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %24 = getelementptr inbounds i64, ptr %18, i64 %indvars.iv
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %24)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %26 = load i32, ptr %1, align 4, !tbaa !8
  %27 = sext i32 %26 to i64
  %28 = icmp slt i64 %indvars.iv.next, %27
  br i1 %28, label %.lr.ph, label %._crit_edge, !llvm.loop !11

.preheader:                                       ; preds = %94, %._crit_edge
  %29 = getelementptr inbounds i8, ptr %2, i64 504
  %30 = getelementptr inbounds i8, ptr %2, i64 8
  %31 = getelementptr inbounds i8, ptr %2, i64 16
  %32 = getelementptr inbounds i8, ptr %2, i64 24
  %33 = getelementptr inbounds i8, ptr %2, i64 32
  %34 = getelementptr inbounds i8, ptr %2, i64 40
  %35 = getelementptr inbounds i8, ptr %2, i64 48
  %36 = getelementptr inbounds i8, ptr %2, i64 56
  %37 = getelementptr inbounds i8, ptr %2, i64 64
  %38 = getelementptr inbounds i8, ptr %2, i64 72
  %39 = getelementptr inbounds i8, ptr %2, i64 80
  %40 = getelementptr inbounds i8, ptr %2, i64 88
  %41 = getelementptr inbounds i8, ptr %2, i64 96
  %42 = getelementptr inbounds i8, ptr %2, i64 104
  %43 = getelementptr inbounds i8, ptr %2, i64 112
  %44 = getelementptr inbounds i8, ptr %2, i64 120
  %45 = getelementptr inbounds i8, ptr %2, i64 128
  %46 = getelementptr inbounds i8, ptr %2, i64 136
  %47 = getelementptr inbounds i8, ptr %2, i64 144
  %48 = getelementptr inbounds i8, ptr %2, i64 152
  %49 = getelementptr inbounds i8, ptr %2, i64 160
  %50 = getelementptr inbounds i8, ptr %2, i64 168
  %51 = getelementptr inbounds i8, ptr %2, i64 176
  %52 = getelementptr inbounds i8, ptr %2, i64 184
  %53 = getelementptr inbounds i8, ptr %2, i64 192
  %54 = getelementptr inbounds i8, ptr %2, i64 200
  %55 = getelementptr inbounds i8, ptr %2, i64 208
  %56 = getelementptr inbounds i8, ptr %2, i64 216
  %57 = getelementptr inbounds i8, ptr %2, i64 224
  %58 = getelementptr inbounds i8, ptr %2, i64 232
  %59 = getelementptr inbounds i8, ptr %2, i64 240
  %60 = getelementptr inbounds i8, ptr %2, i64 248
  %61 = getelementptr inbounds i8, ptr %2, i64 256
  %62 = getelementptr inbounds i8, ptr %2, i64 264
  %63 = getelementptr inbounds i8, ptr %2, i64 272
  %64 = getelementptr inbounds i8, ptr %2, i64 280
  %65 = getelementptr inbounds i8, ptr %2, i64 288
  %66 = getelementptr inbounds i8, ptr %2, i64 296
  %67 = getelementptr inbounds i8, ptr %2, i64 304
  %68 = getelementptr inbounds i8, ptr %2, i64 312
  %69 = getelementptr inbounds i8, ptr %2, i64 320
  %70 = getelementptr inbounds i8, ptr %2, i64 328
  %71 = getelementptr inbounds i8, ptr %2, i64 336
  %72 = getelementptr inbounds i8, ptr %2, i64 344
  %73 = getelementptr inbounds i8, ptr %2, i64 352
  %74 = getelementptr inbounds i8, ptr %2, i64 360
  %75 = getelementptr inbounds i8, ptr %2, i64 368
  %76 = getelementptr inbounds i8, ptr %2, i64 376
  %77 = getelementptr inbounds i8, ptr %2, i64 384
  %78 = getelementptr inbounds i8, ptr %2, i64 392
  %79 = getelementptr inbounds i8, ptr %2, i64 400
  %80 = getelementptr inbounds i8, ptr %2, i64 408
  %81 = getelementptr inbounds i8, ptr %2, i64 416
  %82 = getelementptr inbounds i8, ptr %2, i64 424
  %83 = getelementptr inbounds i8, ptr %2, i64 432
  %84 = getelementptr inbounds i8, ptr %2, i64 440
  %85 = getelementptr inbounds i8, ptr %2, i64 448
  %86 = getelementptr inbounds i8, ptr %2, i64 456
  %87 = getelementptr inbounds i8, ptr %2, i64 464
  %88 = getelementptr inbounds i8, ptr %2, i64 472
  %89 = getelementptr inbounds i8, ptr %2, i64 480
  %90 = getelementptr inbounds i8, ptr %2, i64 488
  %91 = getelementptr inbounds i8, ptr %2, i64 496
  br label %.loopexit

.lr.ph39:                                         ; preds = %._crit_edge, %94
  %indvars.iv48 = phi i64 [ %indvars.iv.next49, %94 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  %92 = getelementptr inbounds i64, ptr %18, i64 %indvars.iv48
  %93 = load i64, ptr %92, align 8, !tbaa !13
  call void @_ZNSt6bitsetILm64EEC2Ey(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %93) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #9
  call void @_ZNKSt6bitsetILm64EE9to_stringB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(8) %4)
  br label %98

94:                                               ; preds = %98
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  %indvars.iv.next49 = add nuw nsw i64 %indvars.iv48, 1
  %95 = load i32, ptr %1, align 4, !tbaa !8
  %96 = sext i32 %95 to i64
  %97 = icmp slt i64 %indvars.iv.next49, %96
  br i1 %97, label %.lr.ph39, label %.preheader, !llvm.loop !15

98:                                               ; preds = %.lr.ph39, %98
  %indvars.iv45 = phi i64 [ 0, %.lr.ph39 ], [ %indvars.iv.next46, %98 ]
  %99 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %indvars.iv45)
  %100 = load i8, ptr %99, align 1, !tbaa !16
  %101 = sext i8 %100 to i64
  %102 = add nsw i64 %101, -48
  %103 = getelementptr inbounds [64 x i64], ptr %2, i64 0, i64 %indvars.iv45
  %104 = load i64, ptr %103, align 8, !tbaa !13
  %105 = add nsw i64 %102, %104
  store i64 %105, ptr %103, align 8, !tbaa !13
  %indvars.iv.next46 = add nuw nsw i64 %indvars.iv45, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next46, 64
  br i1 %exitcond.not, label %94, label %98, !llvm.loop !17

.loopexit:                                        ; preds = %106, %.preheader
  %.030 = phi i64 [ 0, %.preheader ], [ %110, %106 ]
  br label %239

106:                                              ; preds = %239
  %107 = sitofp i64 %249 to x86_fp80
  %square = fmul x86_fp80 %107, %107
  %108 = sitofp i64 %.030 to x86_fp80
  %109 = fadd x86_fp80 %square, %108
  %110 = fptosi x86_fp80 %109 to i64
  %111 = load i64, ptr %2, align 16, !tbaa !13
  %112 = icmp sgt i64 %111, 0
  %113 = load i64, ptr %30, align 8
  %114 = icmp sgt i64 %113, 0
  %or.cond = select i1 %112, i1 true, i1 %114
  %115 = load i64, ptr %31, align 16
  %116 = icmp sgt i64 %115, 0
  %or.cond63 = select i1 %or.cond, i1 true, i1 %116
  %117 = load i64, ptr %32, align 8
  %118 = icmp sgt i64 %117, 0
  %or.cond65 = select i1 %or.cond63, i1 true, i1 %118
  %119 = load i64, ptr %33, align 16
  %120 = icmp sgt i64 %119, 0
  %or.cond67 = select i1 %or.cond65, i1 true, i1 %120
  %121 = load i64, ptr %34, align 8
  %122 = icmp sgt i64 %121, 0
  %or.cond69 = select i1 %or.cond67, i1 true, i1 %122
  %123 = load i64, ptr %35, align 16
  %124 = icmp sgt i64 %123, 0
  %or.cond71 = select i1 %or.cond69, i1 true, i1 %124
  %125 = load i64, ptr %36, align 8
  %126 = icmp sgt i64 %125, 0
  %or.cond73 = select i1 %or.cond71, i1 true, i1 %126
  %127 = load i64, ptr %37, align 16
  %128 = icmp sgt i64 %127, 0
  %or.cond75 = select i1 %or.cond73, i1 true, i1 %128
  %129 = load i64, ptr %38, align 8
  %130 = icmp sgt i64 %129, 0
  %or.cond77 = select i1 %or.cond75, i1 true, i1 %130
  %131 = load i64, ptr %39, align 16
  %132 = icmp sgt i64 %131, 0
  %or.cond79 = select i1 %or.cond77, i1 true, i1 %132
  %133 = load i64, ptr %40, align 8
  %134 = icmp sgt i64 %133, 0
  %or.cond81 = select i1 %or.cond79, i1 true, i1 %134
  %135 = load i64, ptr %41, align 16
  %136 = icmp sgt i64 %135, 0
  %or.cond83 = select i1 %or.cond81, i1 true, i1 %136
  %137 = load i64, ptr %42, align 8
  %138 = icmp sgt i64 %137, 0
  %or.cond85 = select i1 %or.cond83, i1 true, i1 %138
  %139 = load i64, ptr %43, align 16
  %140 = icmp sgt i64 %139, 0
  %or.cond87 = select i1 %or.cond85, i1 true, i1 %140
  %141 = load i64, ptr %44, align 8
  %142 = icmp sgt i64 %141, 0
  %or.cond89 = select i1 %or.cond87, i1 true, i1 %142
  %143 = load i64, ptr %45, align 16
  %144 = icmp sgt i64 %143, 0
  %or.cond91 = select i1 %or.cond89, i1 true, i1 %144
  %145 = load i64, ptr %46, align 8
  %146 = icmp sgt i64 %145, 0
  %or.cond93 = select i1 %or.cond91, i1 true, i1 %146
  %147 = load i64, ptr %47, align 16
  %148 = icmp sgt i64 %147, 0
  %or.cond95 = select i1 %or.cond93, i1 true, i1 %148
  %149 = load i64, ptr %48, align 8
  %150 = icmp sgt i64 %149, 0
  %or.cond97 = select i1 %or.cond95, i1 true, i1 %150
  %151 = load i64, ptr %49, align 16
  %152 = icmp sgt i64 %151, 0
  %or.cond99 = select i1 %or.cond97, i1 true, i1 %152
  %153 = load i64, ptr %50, align 8
  %154 = icmp sgt i64 %153, 0
  %or.cond101 = select i1 %or.cond99, i1 true, i1 %154
  %155 = load i64, ptr %51, align 16
  %156 = icmp sgt i64 %155, 0
  %or.cond103 = select i1 %or.cond101, i1 true, i1 %156
  %157 = load i64, ptr %52, align 8
  %158 = icmp sgt i64 %157, 0
  %or.cond105 = select i1 %or.cond103, i1 true, i1 %158
  %159 = load i64, ptr %53, align 16
  %160 = icmp sgt i64 %159, 0
  %or.cond107 = select i1 %or.cond105, i1 true, i1 %160
  %161 = load i64, ptr %54, align 8
  %162 = icmp sgt i64 %161, 0
  %or.cond109 = select i1 %or.cond107, i1 true, i1 %162
  %163 = load i64, ptr %55, align 16
  %164 = icmp sgt i64 %163, 0
  %or.cond111 = select i1 %or.cond109, i1 true, i1 %164
  %165 = load i64, ptr %56, align 8
  %166 = icmp sgt i64 %165, 0
  %or.cond113 = select i1 %or.cond111, i1 true, i1 %166
  %167 = load i64, ptr %57, align 16
  %168 = icmp sgt i64 %167, 0
  %or.cond115 = select i1 %or.cond113, i1 true, i1 %168
  %169 = load i64, ptr %58, align 8
  %170 = icmp sgt i64 %169, 0
  %or.cond117 = select i1 %or.cond115, i1 true, i1 %170
  %171 = load i64, ptr %59, align 16
  %172 = icmp sgt i64 %171, 0
  %or.cond119 = select i1 %or.cond117, i1 true, i1 %172
  %173 = load i64, ptr %60, align 8
  %174 = icmp sgt i64 %173, 0
  %or.cond121 = select i1 %or.cond119, i1 true, i1 %174
  %175 = load i64, ptr %61, align 16
  %176 = icmp sgt i64 %175, 0
  %or.cond123 = select i1 %or.cond121, i1 true, i1 %176
  %177 = load i64, ptr %62, align 8
  %178 = icmp sgt i64 %177, 0
  %or.cond125 = select i1 %or.cond123, i1 true, i1 %178
  %179 = load i64, ptr %63, align 16
  %180 = icmp sgt i64 %179, 0
  %or.cond127 = select i1 %or.cond125, i1 true, i1 %180
  %181 = load i64, ptr %64, align 8
  %182 = icmp sgt i64 %181, 0
  %or.cond129 = select i1 %or.cond127, i1 true, i1 %182
  %183 = load i64, ptr %65, align 16
  %184 = icmp sgt i64 %183, 0
  %or.cond131 = select i1 %or.cond129, i1 true, i1 %184
  %185 = load i64, ptr %66, align 8
  %186 = icmp sgt i64 %185, 0
  %or.cond133 = select i1 %or.cond131, i1 true, i1 %186
  %187 = load i64, ptr %67, align 16
  %188 = icmp sgt i64 %187, 0
  %or.cond135 = select i1 %or.cond133, i1 true, i1 %188
  %189 = load i64, ptr %68, align 8
  %190 = icmp sgt i64 %189, 0
  %or.cond137 = select i1 %or.cond135, i1 true, i1 %190
  %191 = load i64, ptr %69, align 16
  %192 = icmp sgt i64 %191, 0
  %or.cond139 = select i1 %or.cond137, i1 true, i1 %192
  %193 = load i64, ptr %70, align 8
  %194 = icmp sgt i64 %193, 0
  %or.cond141 = select i1 %or.cond139, i1 true, i1 %194
  %195 = load i64, ptr %71, align 16
  %196 = icmp sgt i64 %195, 0
  %or.cond143 = select i1 %or.cond141, i1 true, i1 %196
  %197 = load i64, ptr %72, align 8
  %198 = icmp sgt i64 %197, 0
  %or.cond145 = select i1 %or.cond143, i1 true, i1 %198
  %199 = load i64, ptr %73, align 16
  %200 = icmp sgt i64 %199, 0
  %or.cond147 = select i1 %or.cond145, i1 true, i1 %200
  %201 = load i64, ptr %74, align 8
  %202 = icmp sgt i64 %201, 0
  %or.cond149 = select i1 %or.cond147, i1 true, i1 %202
  %203 = load i64, ptr %75, align 16
  %204 = icmp sgt i64 %203, 0
  %or.cond151 = select i1 %or.cond149, i1 true, i1 %204
  %205 = load i64, ptr %76, align 8
  %206 = icmp sgt i64 %205, 0
  %or.cond153 = select i1 %or.cond151, i1 true, i1 %206
  %207 = load i64, ptr %77, align 16
  %208 = icmp sgt i64 %207, 0
  %or.cond155 = select i1 %or.cond153, i1 true, i1 %208
  %209 = load i64, ptr %78, align 8
  %210 = icmp sgt i64 %209, 0
  %or.cond157 = select i1 %or.cond155, i1 true, i1 %210
  %211 = load i64, ptr %79, align 16
  %212 = icmp sgt i64 %211, 0
  %or.cond159 = select i1 %or.cond157, i1 true, i1 %212
  %213 = load i64, ptr %80, align 8
  %214 = icmp sgt i64 %213, 0
  %or.cond161 = select i1 %or.cond159, i1 true, i1 %214
  %215 = load i64, ptr %81, align 16
  %216 = icmp sgt i64 %215, 0
  %or.cond163 = select i1 %or.cond161, i1 true, i1 %216
  %217 = load i64, ptr %82, align 8
  %218 = icmp sgt i64 %217, 0
  %or.cond165 = select i1 %or.cond163, i1 true, i1 %218
  %219 = load i64, ptr %83, align 16
  %220 = icmp sgt i64 %219, 0
  %or.cond167 = select i1 %or.cond165, i1 true, i1 %220
  %221 = load i64, ptr %84, align 8
  %222 = icmp sgt i64 %221, 0
  %or.cond169 = select i1 %or.cond167, i1 true, i1 %222
  %223 = load i64, ptr %85, align 16
  %224 = icmp sgt i64 %223, 0
  %or.cond171 = select i1 %or.cond169, i1 true, i1 %224
  %225 = load i64, ptr %86, align 8
  %226 = icmp sgt i64 %225, 0
  %or.cond173 = select i1 %or.cond171, i1 true, i1 %226
  %227 = load i64, ptr %87, align 16
  %228 = icmp sgt i64 %227, 0
  %or.cond175 = select i1 %or.cond173, i1 true, i1 %228
  %229 = load i64, ptr %88, align 8
  %230 = icmp sgt i64 %229, 0
  %or.cond177 = select i1 %or.cond175, i1 true, i1 %230
  %231 = load i64, ptr %89, align 16
  %232 = icmp sgt i64 %231, 0
  %or.cond179 = select i1 %or.cond177, i1 true, i1 %232
  %233 = load i64, ptr %90, align 8
  %234 = icmp sgt i64 %233, 0
  %or.cond181 = select i1 %or.cond179, i1 true, i1 %234
  %235 = load i64, ptr %91, align 16
  %236 = icmp sgt i64 %235, 0
  %or.cond183 = select i1 %or.cond181, i1 true, i1 %236
  %237 = load i64, ptr %29, align 8
  %238 = icmp sgt i64 %237, 0
  %or.cond185 = select i1 %or.cond183, i1 true, i1 %238
  br i1 %or.cond185, label %.loopexit, label %.critedge

239:                                              ; preds = %.loopexit, %239
  %indvars.iv51 = phi i64 [ 0, %.loopexit ], [ %indvars.iv.next52, %239 ]
  %.02940 = phi i64 [ 0, %.loopexit ], [ %249, %239 ]
  %240 = trunc i64 %indvars.iv51 to i32
  %241 = sub i32 63, %240
  %242 = uitofp nneg i32 %241 to x86_fp80
  %exp2l = call x86_fp80 @exp2l(x86_fp80 %242)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  store i64 1, ptr %6, align 8, !tbaa !13
  %243 = getelementptr inbounds [64 x i64], ptr %2, i64 0, i64 %indvars.iv51
  %244 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %243)
  %245 = load i64, ptr %244, align 8, !tbaa !13
  %246 = sitofp i64 %245 to x86_fp80
  %247 = sitofp i64 %.02940 to x86_fp80
  %248 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %exp2l, x86_fp80 %246, x86_fp80 %247)
  %249 = fptosi x86_fp80 %248 to i64
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  %250 = load i64, ptr %243, align 8, !tbaa !13
  %251 = add nsw i64 %250, -1
  store i64 %251, ptr %243, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  store i64 0, ptr %7, align 8, !tbaa !13
  %252 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %243, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %253 = load i64, ptr %252, align 8, !tbaa !13
  store i64 %253, ptr %243, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  %indvars.iv.next52 = add nuw nsw i64 %indvars.iv51, 1
  %exitcond54.not = icmp eq i64 %indvars.iv.next52, 64
  br i1 %exitcond54.not, label %106, label %239, !llvm.loop !18

.critedge:                                        ; preds = %106
  %254 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %110)
  %255 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %254, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %2) #9
  call void @llvm.stackrestore.p0(ptr %17)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  ret i32 0
}

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm64EEC2Ey(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) unnamed_addr #2 align 2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #8

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

declare x86_fp80 @exp2l(x86_fp80) local_unnamed_addr

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


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