; LLVM IR from tangjz/acm-icpc :: projecteuler (597)

; 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, double>, std::_Select1st<std::pair<const int, double>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, double>, std::_Select1st<std::pair<const int, double>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair" = type { i32, double }

@f = external dso_local global [8193 x [2 x %"class.std::map"]], align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [70 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@_ZZ4mainE4bits = external hidden global <{ i32, [14 x i32] }>, align 16
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #0 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::map", align 8
  %7 = alloca %"class.std::map", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %16 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca double, align 8
  %28 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %29 = alloca %"struct.std::_Rb_tree_iterator", align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  br label %30

30:                                               ; preds = %271, %0
  %31 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
  %32 = icmp eq i32 %31, 3
  br i1 %32, label %33, label %274

33:                                               ; preds = %30
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = load i32, ptr %3, align 4, !tbaa !5
  %36 = mul nsw i32 %34, %35
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %39, label %40

39:                                               ; preds = %33
  br label %42

40:                                               ; preds = %33
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 8, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

41:                                               ; No predecessors!
  br label %42

42:                                               ; preds = %41, %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %58, %42
  %44 = load i32, ptr %5, align 4, !tbaa !5
  %45 = load i32, ptr %2, align 4, !tbaa !5
  %46 = shl i32 1, %45
  %47 = icmp slt i32 %44, %46
  br i1 %47, label %49, label %48

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

49:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 48, ptr %6) #7
  call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 48, i1 false)
  call void @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  %50 = load i32, ptr %5, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [8193 x [2 x %"class.std::map"]], ptr @f, i64 0, i64 %51
  %53 = getelementptr inbounds [2 x %"class.std::map"], ptr %52, i64 0, i64 0
  call void @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE4swapERS6_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %53) #7
  call void @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr %7) #7
  call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 48, i1 false)
  call void @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  %54 = load i32, ptr %5, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [8193 x [2 x %"class.std::map"]], ptr @f, i64 0, i64 %55
  %57 = getelementptr inbounds [2 x %"class.std::map"], ptr %56, i64 0, i64 1
  call void @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE4swapERS6_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(48) %57) #7
  call void @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #7
  br label %58

58:                                               ; preds = %49
  %59 = load i32, ptr %5, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %5, align 4, !tbaa !5
  br label %43, !llvm.loop !9

61:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !5
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @f, ptr noundef nonnull align 4 dereferenceable(4) %8)
  store double 1.000000e+00, ptr %62, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = shl i32 1, %63
  %65 = sub nsw i32 %64, 1
  store i32 %65, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %244, %61
  %67 = load i32, ptr %10, align 4, !tbaa !5
  %68 = load i32, ptr %9, align 4, !tbaa !5
  %69 = icmp sle i32 %67, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %66
  store i32 7, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %247

71:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %72

72:                                               ; preds = %240, %71
  %73 = load i32, ptr %12, align 4, !tbaa !5
  %74 = icmp slt i32 %73, 2
  br i1 %74, label %76, label %75

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

76:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %95, %76
  %78 = load i32, ptr %14, align 4, !tbaa !5
  %79 = load i32, ptr %2, align 4, !tbaa !5
  %80 = icmp slt i32 %78, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %77
  store i32 13, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %98

82:                                               ; preds = %77
  %83 = load i32, ptr %10, align 4, !tbaa !5
  %84 = load i32, ptr %14, align 4, !tbaa !5
  %85 = shl i32 1, %84
  %86 = and i32 %83, %85
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %94, label %88

88:                                               ; preds = %82
  %89 = load i32, ptr %14, align 4, !tbaa !5
  %90 = load i32, ptr %13, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %13, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %92
  store i32 %89, ptr %93, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %88, %82
  br label %95

95:                                               ; preds = %94
  %96 = load i32, ptr %14, align 4, !tbaa !5
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %14, align 4, !tbaa !5
  br label %77, !llvm.loop !13

98:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %99 = load i32, ptr %10, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [8193 x [2 x %"class.std::map"]], ptr @f, i64 0, i64 %100
  %102 = load i32, ptr %12, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [2 x %"class.std::map"], ptr %101, i64 0, i64 %103
  %105 = call ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %104) #7
  %106 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %15, i32 0, i32 0
  store ptr %105, ptr %106, align 8
  br label %107

107:                                              ; preds = %237, %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %108 = load i32, ptr %10, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [8193 x [2 x %"class.std::map"]], ptr @f, i64 0, i64 %109
  %111 = load i32, ptr %12, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [2 x %"class.std::map"], ptr %110, i64 0, i64 %112
  %114 = call ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %113) #7
  %115 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %16, i32 0, i32 0
  store ptr %114, ptr %115, align 8
  %116 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKidEES5_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br i1 %116, label %118, label %117

117:                                              ; preds = %107
  store i32 16, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %239

118:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %119 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKidEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  %120 = getelementptr inbounds %"struct.std::pair", ptr %119, i32 0, i32 0
  %121 = load i32, ptr %120, align 8, !tbaa !14
  store i32 %121, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %122 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKidEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  %123 = getelementptr inbounds %"struct.std::pair", ptr %122, i32 0, i32 1
  %124 = load double, ptr %123, align 8, !tbaa !16
  store double %124, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 1, ptr %19, align 4, !tbaa !5
  br label %125

125:                                              ; preds = %184, %118
  %126 = load i32, ptr %19, align 4, !tbaa !5
  %127 = load i32, ptr %13, align 4, !tbaa !5
  %128 = icmp slt i32 %126, %127
  br i1 %128, label %130, label %129

129:                                              ; preds = %125
  store i32 19, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %187

130:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %131 = load i32, ptr %19, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %135 = load i32, ptr %19, align 4, !tbaa !5
  %136 = sub nsw i32 %135, 1
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = sub nsw i32 %134, %139
  store i32 %140, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %141 = load i32, ptr %19, align 4, !tbaa !5
  %142 = add nsw i32 %141, 1
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %146 = load i32, ptr %19, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %147
  %149 = load i32, ptr %148, align 4, !tbaa !5
  %150 = sub nsw i32 %145, %149
  store i32 %150, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %151 = load i32, ptr %21, align 4, !tbaa !5
  %152 = load i32, ptr %3, align 4, !tbaa !5
  %153 = mul nsw i32 %151, %152
  store i32 %153, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %154 = load i32, ptr %17, align 4, !tbaa !5
  %155 = load i32, ptr %20, align 4, !tbaa !5
  %156 = load i32, ptr %22, align 4, !tbaa !5
  %157 = mul nsw i32 %155, %156
  %158 = add nsw i32 %154, %157
  store i32 %158, ptr %23, align 4, !tbaa !5
  %159 = load double, ptr %18, align 8, !tbaa !11
  %160 = load i32, ptr %22, align 4, !tbaa !5
  %161 = sitofp i32 %160 to double
  %162 = fmul double %159, %161
  %163 = load i32, ptr %23, align 4, !tbaa !5
  %164 = sitofp i32 %163 to double
  %165 = fdiv double %162, %164
  %166 = load i32, ptr %10, align 4, !tbaa !5
  %167 = load i32, ptr %19, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %168
  %170 = load i32, ptr %169, align 4, !tbaa !5
  %171 = shl i32 1, %170
  %172 = or i32 %166, %171
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [8193 x [2 x %"class.std::map"]], ptr @f, i64 0, i64 %173
  %175 = load i32, ptr %12, align 4, !tbaa !5
  %176 = load i32, ptr %20, align 4, !tbaa !5
  %177 = add nsw i32 %175, %176
  %178 = and i32 %177, 1
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [2 x %"class.std::map"], ptr %174, i64 0, i64 %179
  %181 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %180, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %182 = load double, ptr %181, align 8, !tbaa !11
  %183 = fadd double %182, %165
  store double %183, ptr %181, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %184

184:                                              ; preds = %130
  %185 = load i32, ptr %19, align 4, !tbaa !5
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %19, align 4, !tbaa !5
  br label %125, !llvm.loop !17

187:                                              ; preds = %129
  %188 = load i32, ptr %13, align 4, !tbaa !5
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %190, label %236

190:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %191 = load i32, ptr %13, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = load i32, ptr %13, align 4, !tbaa !5
  %196 = sub nsw i32 %195, 1
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %197
  %199 = load i32, ptr %198, align 4, !tbaa !5
  %200 = sub nsw i32 %194, %199
  store i32 %200, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %201 = load i32, ptr %4, align 4, !tbaa !5
  %202 = load i32, ptr %13, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %203
  %205 = load i32, ptr %204, align 4, !tbaa !5
  %206 = load i32, ptr %3, align 4, !tbaa !5
  %207 = mul nsw i32 %205, %206
  %208 = sub nsw i32 %201, %207
  store i32 %208, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %209 = load i32, ptr %17, align 4, !tbaa !5
  %210 = load i32, ptr %24, align 4, !tbaa !5
  %211 = load i32, ptr %25, align 4, !tbaa !5
  %212 = mul nsw i32 %210, %211
  %213 = add nsw i32 %209, %212
  store i32 %213, ptr %26, align 4, !tbaa !5
  %214 = load double, ptr %18, align 8, !tbaa !11
  %215 = load i32, ptr %25, align 4, !tbaa !5
  %216 = sitofp i32 %215 to double
  %217 = fmul double %214, %216
  %218 = load i32, ptr %26, align 4, !tbaa !5
  %219 = sitofp i32 %218 to double
  %220 = fdiv double %217, %219
  %221 = load i32, ptr %10, align 4, !tbaa !5
  %222 = load i32, ptr %13, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %223
  %225 = load i32, ptr %224, align 4, !tbaa !5
  %226 = shl i32 1, %225
  %227 = or i32 %221, %226
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [8193 x [2 x %"class.std::map"]], ptr @f, i64 0, i64 %228
  %230 = load i32, ptr %12, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [2 x %"class.std::map"], ptr %229, i64 0, i64 %231
  %233 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %232, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %234 = load double, ptr %233, align 8, !tbaa !11
  %235 = fadd double %234, %220
  store double %235, ptr %233, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %236

236:                                              ; preds = %190, %187
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %237

237:                                              ; preds = %236
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKidEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  br label %107, !llvm.loop !18

239:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %240

240:                                              ; preds = %239
  %241 = load i32, ptr %12, align 4, !tbaa !5
  %242 = add nsw i32 %241, 1
  store i32 %242, ptr %12, align 4, !tbaa !5
  br label %72, !llvm.loop !19

243:                                              ; preds = %75
  br label %244

244:                                              ; preds = %243
  %245 = load i32, ptr %10, align 4, !tbaa !5
  %246 = add nsw i32 %245, 1
  store i32 %246, ptr %10, align 4, !tbaa !5
  br label %66, !llvm.loop !20

247:                                              ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  store double 0.000000e+00, ptr %27, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %248 = load i32, ptr %9, align 4, !tbaa !5
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [8193 x [2 x %"class.std::map"]], ptr @f, i64 0, i64 %249
  %251 = getelementptr inbounds [2 x %"class.std::map"], ptr %250, i64 0, i64 0
  %252 = call ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %251) #7
  %253 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %28, i32 0, i32 0
  store ptr %252, ptr %253, align 8
  br label %254

254:                                              ; preds = %269, %247
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %255 = load i32, ptr %9, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [8193 x [2 x %"class.std::map"]], ptr @f, i64 0, i64 %256
  %258 = getelementptr inbounds [2 x %"class.std::map"], ptr %257, i64 0, i64 0
  %259 = call ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %258) #7
  %260 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %29, i32 0, i32 0
  store ptr %259, ptr %260, align 8
  %261 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKidEES5_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br i1 %261, label %263, label %262

262:                                              ; preds = %254
  store i32 22, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %271

263:                                              ; preds = %254
  %264 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKidEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  %265 = getelementptr inbounds %"struct.std::pair", ptr %264, i32 0, i32 1
  %266 = load double, ptr %265, align 8, !tbaa !16
  %267 = load double, ptr %27, align 8, !tbaa !11
  %268 = fadd double %267, %266
  store double %268, ptr %27, align 8, !tbaa !11
  br label %269

269:                                              ; preds = %263
  %270 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKidEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  br label %254, !llvm.loop !21

271:                                              ; preds = %262
  %272 = load double, ptr %27, align 8, !tbaa !11
  %273 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %272)
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %30, !llvm.loop !22

274:                                              ; preds = %30
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %275 = load i32, ptr %1, align 4
  ret i32 %275
}

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE4swapERS6_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKidEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #6 align 2

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

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

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn 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 = distinct !{!13, !10}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTSSt4pairIKidE", !6, i64 0, !12, i64 8}
!16 = !{!15, !12, i64 8}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, double>, std::_Select1st<std::pair<const int, double>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, double>, std::_Select1st<std::pair<const int, double>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }

@f = external dso_local global [8193 x [2 x %"class.std::map"]], align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [70 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@_ZZ4mainE4bits = external hidden local_unnamed_addr global <{ i32, [14 x i32] }>, align 16
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #0 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::map", align 8
  %5 = alloca %"class.std::map", align 8
  %6 = alloca i32, align 4
  %7 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %8 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %12 = alloca %"struct.std::_Rb_tree_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %14 = icmp eq i32 %13, 3
  br i1 %14, label %.lr.ph83, label %._crit_edge84

.lr.ph83:                                         ; preds = %0, %._crit_edge80
  %15 = load i32, ptr %1, align 4, !tbaa !5
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = mul nsw i32 %16, %15
  %18 = load i32, ptr %3, align 4, !tbaa !5
  %19 = icmp slt i32 %17, %18
  br i1 %19, label %.preheader62, label %20

.preheader62:                                     ; preds = %.lr.ph83
  %.not85 = icmp eq i32 %15, 31
  br i1 %.not85, label %._crit_edge, label %.lr.ph

20:                                               ; preds = %.lr.ph83
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 8, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #8
  unreachable

._crit_edge:                                      ; preds = %.lr.ph, %.preheader62
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 0, ptr %6, align 4, !tbaa !5
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48) @f, ptr noundef nonnull align 4 dereferenceable(4) %6)
  store double 1.000000e+00, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  %22 = load i32, ptr %1, align 4, !tbaa !5
  %notmask = shl nsw i32 -1, %22
  %23 = sub i32 0, %notmask
  %wide.trip.count97 = zext i32 %23 to i64
  br label %.preheader61

.lr.ph:                                           ; preds = %.preheader62, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader62 ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %4, i8 0, i64 48, i1 false)
  call void @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  %24 = getelementptr inbounds [8193 x [2 x %"class.std::map"]], ptr @f, i64 0, i64 %indvars.iv
  call void @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE4swapERS6_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(48) %24) #7
  call void @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %5, i8 0, i64 48, i1 false)
  call void @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #7
  %25 = getelementptr inbounds i8, ptr %24, i64 48
  call void @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE4swapERS6_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(48) %25) #7
  call void @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %26 = load i32, ptr %1, align 4, !tbaa !5
  %27 = shl nuw i32 1, %26
  %28 = sext i32 %27 to i64
  %29 = icmp slt i64 %indvars.iv.next, %28
  br i1 %29, label %.lr.ph, label %._crit_edge, !llvm.loop !11

.preheader61thread-pre-split:                     ; preds = %._crit_edge74.1
  %.pr = load i32, ptr %1, align 4, !tbaa !5
  br label %.preheader61

.preheader61:                                     ; preds = %.preheader61thread-pre-split, %._crit_edge
  %30 = phi i32 [ %.pr, %.preheader61thread-pre-split ], [ %22, %._crit_edge ]
  %indvars.iv94 = phi i64 [ %indvars.iv.next95, %.preheader61thread-pre-split ], [ 0, %._crit_edge ]
  %31 = icmp sgt i32 %30, 0
  br i1 %31, label %.lr.ph66.preheader, label %._crit_edge67

32:                                               ; preds = %._crit_edge74.1
  %33 = xor i32 %notmask, -1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %34 = zext nneg i32 %33 to i64
  %35 = getelementptr inbounds [8193 x [2 x %"class.std::map"]], ptr @f, i64 0, i64 %34
  %36 = call ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %35) #7
  store ptr %36, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %37 = call ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %35) #7
  store ptr %37, ptr %12, align 8
  %38 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKidEES5_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br i1 %38, label %.lr.ph79, label %._crit_edge80

.lr.ph66.preheader:                               ; preds = %.preheader61
  %39 = trunc nuw nsw i64 %indvars.iv94 to i32
  %xtraiter = and i32 %30, 1
  %40 = icmp eq i32 %30, 1
  br i1 %40, label %._crit_edge67.loopexit.unr-lcssa, label %.lr.ph66.preheader.new

.lr.ph66.preheader.new:                           ; preds = %.lr.ph66.preheader
  %unroll_iter = and i32 %30, 2147483646
  br label %.lr.ph66

._crit_edge67.loopexit.unr-lcssa:                 ; preds = %72, %.lr.ph66.preheader
  %.1.lcssa.ph = phi i32 [ poison, %.lr.ph66.preheader ], [ %.1.1104, %72 ]
  %.05665.unr = phi i32 [ 0, %.lr.ph66.preheader ], [ %.1.1104, %72 ]
  %.05764.unr = phi i32 [ 0, %.lr.ph66.preheader ], [ %73, %72 ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge67, label %.lr.ph66.epil

.lr.ph66.epil:                                    ; preds = %._crit_edge67.loopexit.unr-lcssa
  %41 = shl nuw i32 1, %.05764.unr
  %42 = and i32 %41, %39
  %.not60.epil = icmp eq i32 %42, 0
  br i1 %.not60.epil, label %43, label %._crit_edge67

43:                                               ; preds = %.lr.ph66.epil
  %44 = add nsw i32 %.05665.unr, 1
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %45
  store i32 %.05764.unr, ptr %46, align 4, !tbaa !5
  br label %._crit_edge67

._crit_edge67:                                    ; preds = %._crit_edge67.loopexit.unr-lcssa, %43, %.lr.ph66.epil, %.preheader61
  %.056.lcssa = phi i32 [ 0, %.preheader61 ], [ %.1.lcssa.ph, %._crit_edge67.loopexit.unr-lcssa ], [ %.05665.unr, %.lr.ph66.epil ], [ %44, %43 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %47 = getelementptr inbounds [8193 x [2 x %"class.std::map"]], ptr @f, i64 0, i64 %indvars.iv94, i64 0
  %48 = call ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %47) #7
  store ptr %48, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %49 = call ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %47) #7
  store ptr %49, ptr %8, align 8
  %50 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKidEES5_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br i1 %50, label %.lr.ph73, label %._crit_edge74

.lr.ph73:                                         ; preds = %._crit_edge67
  %51 = icmp sgt i32 %.056.lcssa, 1
  %.not59 = icmp eq i32 %.056.lcssa, 0
  %52 = sext i32 %.056.lcssa to i64
  %53 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %52
  %54 = add nsw i32 %.056.lcssa, -1
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %55
  %wide.trip.count = zext nneg i32 %.056.lcssa to i64
  %57 = trunc nuw nsw i64 %indvars.iv94 to i32
  %58 = trunc nuw nsw i64 %indvars.iv94 to i32
  br label %169

.lr.ph66:                                         ; preds = %72, %.lr.ph66.preheader.new
  %.05665 = phi i32 [ 0, %.lr.ph66.preheader.new ], [ %.1.1104, %72 ]
  %.05764 = phi i32 [ 0, %.lr.ph66.preheader.new ], [ %73, %72 ]
  %niter = phi i32 [ 0, %.lr.ph66.preheader.new ], [ %niter.next.1, %72 ]
  %59 = shl nuw i32 1, %.05764
  %60 = and i32 %59, %39
  %.not60 = icmp eq i32 %60, 0
  br i1 %.not60, label %61, label %.lr.ph66.1103

61:                                               ; preds = %.lr.ph66
  %62 = add nsw i32 %.05665, 1
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %63
  store i32 %.05764, ptr %64, align 4, !tbaa !5
  br label %.lr.ph66.1103

.lr.ph66.1103:                                    ; preds = %.lr.ph66, %61
  %.1 = phi i32 [ %.05665, %.lr.ph66 ], [ %62, %61 ]
  %65 = shl nuw i32 2, %.05764
  %66 = and i32 %65, %39
  %.not60.1102 = icmp eq i32 %66, 0
  br i1 %.not60.1102, label %67, label %72

67:                                               ; preds = %.lr.ph66.1103
  %68 = or disjoint i32 %.05764, 1
  %69 = add nsw i32 %.1, 1
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %70
  store i32 %68, ptr %71, align 4, !tbaa !5
  br label %72

72:                                               ; preds = %67, %.lr.ph66.1103
  %.1.1104 = phi i32 [ %.1, %.lr.ph66.1103 ], [ %69, %67 ]
  %73 = add nuw nsw i32 %.05764, 2
  %niter.next.1 = add i32 %niter, 2
  %niter.ncmp.1 = icmp eq i32 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge67.loopexit.unr-lcssa, label %.lr.ph66, !llvm.loop !13

._crit_edge74:                                    ; preds = %222, %._crit_edge67
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %74 = load i32, ptr %1, align 4, !tbaa !5
  %75 = icmp sgt i32 %74, 0
  br i1 %75, label %.lr.ph66.preheader.1, label %._crit_edge67.1

.lr.ph66.preheader.1:                             ; preds = %._crit_edge74
  %76 = trunc nuw nsw i64 %indvars.iv94 to i32
  %xtraiter105 = and i32 %74, 1
  %77 = icmp eq i32 %74, 1
  br i1 %77, label %._crit_edge67.1.loopexit.unr-lcssa, label %.lr.ph66.preheader.1.new

.lr.ph66.preheader.1.new:                         ; preds = %.lr.ph66.preheader.1
  %unroll_iter108 = and i32 %74, 2147483646
  br label %.lr.ph66.1

.lr.ph66.1:                                       ; preds = %91, %.lr.ph66.preheader.1.new
  %.05665.1 = phi i32 [ 0, %.lr.ph66.preheader.1.new ], [ %.1.1.1, %91 ]
  %.05764.1 = phi i32 [ 0, %.lr.ph66.preheader.1.new ], [ %92, %91 ]
  %niter109 = phi i32 [ 0, %.lr.ph66.preheader.1.new ], [ %niter109.next.1, %91 ]
  %78 = shl nuw i32 1, %.05764.1
  %79 = and i32 %78, %76
  %.not60.1 = icmp eq i32 %79, 0
  br i1 %.not60.1, label %80, label %.lr.ph66.1.1

80:                                               ; preds = %.lr.ph66.1
  %81 = add nsw i32 %.05665.1, 1
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %82
  store i32 %.05764.1, ptr %83, align 4, !tbaa !5
  br label %.lr.ph66.1.1

.lr.ph66.1.1:                                     ; preds = %80, %.lr.ph66.1
  %.1.1 = phi i32 [ %.05665.1, %.lr.ph66.1 ], [ %81, %80 ]
  %84 = shl nuw i32 2, %.05764.1
  %85 = and i32 %84, %76
  %.not60.1.1 = icmp eq i32 %85, 0
  br i1 %.not60.1.1, label %86, label %91

86:                                               ; preds = %.lr.ph66.1.1
  %87 = or disjoint i32 %.05764.1, 1
  %88 = add nsw i32 %.1.1, 1
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %89
  store i32 %87, ptr %90, align 4, !tbaa !5
  br label %91

91:                                               ; preds = %86, %.lr.ph66.1.1
  %.1.1.1 = phi i32 [ %.1.1, %.lr.ph66.1.1 ], [ %88, %86 ]
  %92 = add nuw nsw i32 %.05764.1, 2
  %niter109.next.1 = add i32 %niter109, 2
  %niter109.ncmp.1 = icmp eq i32 %niter109.next.1, %unroll_iter108
  br i1 %niter109.ncmp.1, label %._crit_edge67.1.loopexit.unr-lcssa, label %.lr.ph66.1, !llvm.loop !13

._crit_edge67.1.loopexit.unr-lcssa:               ; preds = %91, %.lr.ph66.preheader.1
  %.1.1.lcssa.ph = phi i32 [ poison, %.lr.ph66.preheader.1 ], [ %.1.1.1, %91 ]
  %.05665.1.unr = phi i32 [ 0, %.lr.ph66.preheader.1 ], [ %.1.1.1, %91 ]
  %.05764.1.unr = phi i32 [ 0, %.lr.ph66.preheader.1 ], [ %92, %91 ]
  %lcmp.mod106.not = icmp eq i32 %xtraiter105, 0
  br i1 %lcmp.mod106.not, label %._crit_edge67.1, label %.lr.ph66.1.epil

.lr.ph66.1.epil:                                  ; preds = %._crit_edge67.1.loopexit.unr-lcssa
  %93 = shl nuw i32 1, %.05764.1.unr
  %94 = and i32 %93, %76
  %.not60.1.epil = icmp eq i32 %94, 0
  br i1 %.not60.1.epil, label %95, label %._crit_edge67.1

95:                                               ; preds = %.lr.ph66.1.epil
  %96 = add nsw i32 %.05665.1.unr, 1
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %97
  store i32 %.05764.1.unr, ptr %98, align 4, !tbaa !5
  br label %._crit_edge67.1

._crit_edge67.1:                                  ; preds = %._crit_edge67.1.loopexit.unr-lcssa, %95, %.lr.ph66.1.epil, %._crit_edge74
  %.056.lcssa.1 = phi i32 [ 0, %._crit_edge74 ], [ %.1.1.lcssa.ph, %._crit_edge67.1.loopexit.unr-lcssa ], [ %.05665.1.unr, %.lr.ph66.1.epil ], [ %96, %95 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %99 = getelementptr inbounds [8193 x [2 x %"class.std::map"]], ptr @f, i64 0, i64 %indvars.iv94, i64 1
  %100 = call ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %99) #7
  store ptr %100, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %101 = call ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %99) #7
  store ptr %101, ptr %8, align 8
  %102 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKidEES5_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br i1 %102, label %.lr.ph73.1, label %._crit_edge74.1

.lr.ph73.1:                                       ; preds = %._crit_edge67.1
  %103 = icmp sgt i32 %.056.lcssa.1, 1
  %.not59.1 = icmp eq i32 %.056.lcssa.1, 0
  %104 = sext i32 %.056.lcssa.1 to i64
  %105 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %104
  %106 = add nsw i32 %.056.lcssa.1, -1
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %107
  %wide.trip.count.1 = zext nneg i32 %.056.lcssa.1 to i64
  %109 = trunc nuw nsw i64 %indvars.iv94 to i32
  %110 = trunc nuw nsw i64 %indvars.iv94 to i32
  br label %111

111:                                              ; preds = %165, %.lr.ph73.1
  %112 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKidEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %113 = load i32, ptr %112, align 8, !tbaa !14
  %114 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKidEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %115 = getelementptr inbounds i8, ptr %114, i64 8
  %116 = load double, ptr %115, align 8, !tbaa !16
  br i1 %103, label %.lr.ph70.1, label %._crit_edge71.1

.lr.ph70.1:                                       ; preds = %111, %.lr.ph70.1
  %indvars.iv87.1 = phi i64 [ %indvars.iv.next88.1, %.lr.ph70.1 ], [ 1, %111 ]
  %117 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %indvars.iv87.1
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = add nsw i64 %indvars.iv87.1, -1
  %120 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = sub nsw i32 %118, %121
  %indvars.iv.next88.1 = add nuw nsw i64 %indvars.iv87.1, 1
  %123 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %indvars.iv.next88.1
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = sub nsw i32 %124, %118
  %126 = load i32, ptr %2, align 4, !tbaa !5
  %127 = mul nsw i32 %125, %126
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %128 = mul nsw i32 %127, %122
  %129 = add nsw i32 %128, %113
  store i32 %129, ptr %9, align 4, !tbaa !5
  %130 = sitofp i32 %127 to double
  %131 = fmul double %116, %130
  %132 = sitofp i32 %129 to double
  %133 = fdiv double %131, %132
  %134 = shl nuw i32 1, %118
  %135 = or i32 %134, %109
  %136 = sext i32 %135 to i64
  %137 = and i32 %122, 1
  %138 = xor i32 %137, 1
  %139 = zext nneg i32 %138 to i64
  %140 = getelementptr inbounds [8193 x [2 x %"class.std::map"]], ptr @f, i64 0, i64 %136, i64 %139
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %140, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %142 = load double, ptr %141, align 8, !tbaa !9
  %143 = fadd double %142, %133
  store double %143, ptr %141, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  %exitcond90.1.not = icmp eq i64 %indvars.iv.next88.1, %wide.trip.count.1
  br i1 %exitcond90.1.not, label %._crit_edge71.1, label %.lr.ph70.1, !llvm.loop !17

._crit_edge71.1:                                  ; preds = %.lr.ph70.1, %111
  br i1 %.not59.1, label %165, label %144

144:                                              ; preds = %._crit_edge71.1
  %145 = load i32, ptr %105, align 4, !tbaa !5
  %146 = load i32, ptr %108, align 4, !tbaa !5
  %147 = sub nsw i32 %145, %146
  %148 = load i32, ptr %3, align 4, !tbaa !5
  %149 = load i32, ptr %2, align 4, !tbaa !5
  %150 = mul nsw i32 %149, %145
  %151 = sub nsw i32 %148, %150
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %152 = mul nsw i32 %151, %147
  %153 = add nsw i32 %152, %113
  store i32 %153, ptr %10, align 4, !tbaa !5
  %154 = sitofp i32 %151 to double
  %155 = fmul double %116, %154
  %156 = sitofp i32 %153 to double
  %157 = fdiv double %155, %156
  %158 = shl nuw i32 1, %145
  %159 = or i32 %158, %110
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [8193 x [2 x %"class.std::map"]], ptr @f, i64 0, i64 %160, i64 1
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %161, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %163 = load double, ptr %162, align 8, !tbaa !9
  %164 = fadd double %163, %157
  store double %164, ptr %162, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  br label %165

165:                                              ; preds = %144, %._crit_edge71.1
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKidEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %167 = call ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %99) #7
  store ptr %167, ptr %8, align 8
  %168 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKidEES5_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br i1 %168, label %111, label %._crit_edge74.1, !llvm.loop !18

._crit_edge74.1:                                  ; preds = %165, %._crit_edge67.1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %exitcond98.not = icmp eq i64 %indvars.iv.next95, %wide.trip.count97
  br i1 %exitcond98.not, label %32, label %.preheader61thread-pre-split, !llvm.loop !19

169:                                              ; preds = %.lr.ph73, %222
  %170 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKidEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %171 = load i32, ptr %170, align 8, !tbaa !14
  %172 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKidEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %173 = getelementptr inbounds i8, ptr %172, i64 8
  %174 = load double, ptr %173, align 8, !tbaa !16
  br i1 %51, label %.lr.ph70, label %._crit_edge71

._crit_edge71:                                    ; preds = %.lr.ph70, %169
  br i1 %.not59, label %222, label %201

.lr.ph70:                                         ; preds = %169, %.lr.ph70
  %indvars.iv87 = phi i64 [ %indvars.iv.next88, %.lr.ph70 ], [ 1, %169 ]
  %175 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %indvars.iv87
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %177 = add nsw i64 %indvars.iv87, -1
  %178 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %177
  %179 = load i32, ptr %178, align 4, !tbaa !5
  %180 = sub nsw i32 %176, %179
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %181 = getelementptr inbounds [15 x i32], ptr @_ZZ4mainE4bits, i64 0, i64 %indvars.iv.next88
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %183 = sub nsw i32 %182, %176
  %184 = load i32, ptr %2, align 4, !tbaa !5
  %185 = mul nsw i32 %183, %184
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %186 = mul nsw i32 %185, %180
  %187 = add nsw i32 %186, %171
  store i32 %187, ptr %9, align 4, !tbaa !5
  %188 = sitofp i32 %185 to double
  %189 = fmul double %174, %188
  %190 = sitofp i32 %187 to double
  %191 = fdiv double %189, %190
  %192 = shl nuw i32 1, %176
  %193 = or i32 %192, %57
  %194 = sext i32 %193 to i64
  %195 = and i32 %180, 1
  %196 = zext nneg i32 %195 to i64
  %197 = getelementptr inbounds [8193 x [2 x %"class.std::map"]], ptr @f, i64 0, i64 %194, i64 %196
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %197, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %199 = load double, ptr %198, align 8, !tbaa !9
  %200 = fadd double %199, %191
  store double %200, ptr %198, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  %exitcond90.not = icmp eq i64 %indvars.iv.next88, %wide.trip.count
  br i1 %exitcond90.not, label %._crit_edge71, label %.lr.ph70, !llvm.loop !17

201:                                              ; preds = %._crit_edge71
  %202 = load i32, ptr %53, align 4, !tbaa !5
  %203 = load i32, ptr %56, align 4, !tbaa !5
  %204 = sub nsw i32 %202, %203
  %205 = load i32, ptr %3, align 4, !tbaa !5
  %206 = load i32, ptr %2, align 4, !tbaa !5
  %207 = mul nsw i32 %206, %202
  %208 = sub nsw i32 %205, %207
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %209 = mul nsw i32 %208, %204
  %210 = add nsw i32 %209, %171
  store i32 %210, ptr %10, align 4, !tbaa !5
  %211 = sitofp i32 %208 to double
  %212 = fmul double %174, %211
  %213 = sitofp i32 %210 to double
  %214 = fdiv double %212, %213
  %215 = shl nuw i32 1, %202
  %216 = or i32 %215, %58
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [8193 x [2 x %"class.std::map"]], ptr @f, i64 0, i64 %217, i64 0
  %219 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %218, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %220 = load double, ptr %219, align 8, !tbaa !9
  %221 = fadd double %220, %214
  store double %221, ptr %219, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  br label %222

222:                                              ; preds = %201, %._crit_edge71
  %223 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKidEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %224 = call ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %47) #7
  store ptr %224, ptr %8, align 8
  %225 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKidEES5_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br i1 %225, label %169, label %._crit_edge74, !llvm.loop !18

._crit_edge80:                                    ; preds = %.lr.ph79, %32
  %.0.lcssa = phi double [ 0.000000e+00, %32 ], [ %232, %.lr.ph79 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  %226 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %.0.lcssa)
  %227 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %228 = icmp eq i32 %227, 3
  br i1 %228, label %.lr.ph83, label %._crit_edge84, !llvm.loop !20

.lr.ph79:                                         ; preds = %32, %.lr.ph79
  %.077 = phi double [ %232, %.lr.ph79 ], [ 0.000000e+00, %32 ]
  %229 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKidEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  %230 = getelementptr inbounds i8, ptr %229, i64 8
  %231 = load double, ptr %230, align 8, !tbaa !16
  %232 = fadd double %.077, %231
  %233 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKidEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %234 = call ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %35) #7
  store ptr %234, ptr %12, align 8
  %235 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKidEES5_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br i1 %235, label %.lr.ph79, label %._crit_edge80, !llvm.loop !21

._crit_edge84:                                    ; preds = %._crit_edge80, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 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: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE4swapERS6_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) 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) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEEixEOi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKidEES5_(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 ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIidSt4lessIiESaISt4pairIKidEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6 align 2

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

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn 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 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTSSt4pairIKidE", !6, i64 0, !10, i64 8}
!16 = !{!15, !10, i64 8}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}


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