; LLVM IR from DionysiosB/CodeForces :: 1300-1399 (1393B-ApplejackAndStorages)

; 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<long, std::pair<const long, long>, std::_Select1st<std::pair<const long, long>>, std::less<long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<long, std::pair<const long, long>, std::_Select1st<std::pair<const long, long>>, std::less<long>>::_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 }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca %"class.std::map", align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca i8, align 1
  %14 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  call void @llvm.lifetime.start.p0(i64 48, ptr %3) #5
  call void @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  store i64 0, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store i64 0, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store i64 0, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 0, ptr %8, align 8, !tbaa !5
  br label %16

16:                                               ; preds = %73, %0
  %17 = load i64, ptr %8, align 8, !tbaa !5
  %18 = load i64, ptr %2, align 8, !tbaa !5
  %19 = icmp slt i64 %17, %18
  br i1 %19, label %21, label %20

20:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %76

21:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %22 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %9)
          to label %23 unwind label %37

23:                                               ; preds = %21
  %24 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %25 unwind label %37

25:                                               ; preds = %23
  %26 = load i64, ptr %24, align 8, !tbaa !5
  %27 = add nsw i64 %26, 1
  store i64 %27, ptr %24, align 8, !tbaa !5
  %28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %29 unwind label %37

29:                                               ; preds = %25
  %30 = load i64, ptr %28, align 8, !tbaa !5
  %31 = icmp eq i64 %30, 8
  br i1 %31, label %32, label %41

32:                                               ; preds = %29
  %33 = load i64, ptr %7, align 8, !tbaa !5
  %34 = add nsw i64 %33, 1
  store i64 %34, ptr %7, align 8, !tbaa !5
  %35 = load i64, ptr %6, align 8, !tbaa !5
  %36 = add nsw i64 %35, -1
  store i64 %36, ptr %6, align 8, !tbaa !5
  br label %72

37:                                               ; preds = %61, %51, %41, %25, %23, %21
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %10, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %227

41:                                               ; preds = %29
  %42 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %43 unwind label %37

43:                                               ; preds = %41
  %44 = load i64, ptr %42, align 8, !tbaa !5
  %45 = icmp eq i64 %44, 6
  br i1 %45, label %46, label %51

46:                                               ; preds = %43
  %47 = load i64, ptr %6, align 8, !tbaa !5
  %48 = add nsw i64 %47, 1
  store i64 %48, ptr %6, align 8, !tbaa !5
  %49 = load i64, ptr %5, align 8, !tbaa !5
  %50 = add nsw i64 %49, -1
  store i64 %50, ptr %5, align 8, !tbaa !5
  br label %71

51:                                               ; preds = %43
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %53 unwind label %37

53:                                               ; preds = %51
  %54 = load i64, ptr %52, align 8, !tbaa !5
  %55 = icmp eq i64 %54, 4
  br i1 %55, label %56, label %61

56:                                               ; preds = %53
  %57 = load i64, ptr %5, align 8, !tbaa !5
  %58 = add nsw i64 %57, 1
  store i64 %58, ptr %5, align 8, !tbaa !5
  %59 = load i64, ptr %4, align 8, !tbaa !5
  %60 = add nsw i64 %59, -1
  store i64 %60, ptr %4, align 8, !tbaa !5
  br label %70

61:                                               ; preds = %53
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %63 unwind label %37

63:                                               ; preds = %61
  %64 = load i64, ptr %62, align 8, !tbaa !5
  %65 = icmp eq i64 %64, 2
  br i1 %65, label %66, label %69

66:                                               ; preds = %63
  %67 = load i64, ptr %4, align 8, !tbaa !5
  %68 = add nsw i64 %67, 1
  store i64 %68, ptr %4, align 8, !tbaa !5
  br label %69

69:                                               ; preds = %66, %63
  br label %70

70:                                               ; preds = %69, %56
  br label %71

71:                                               ; preds = %70, %46
  br label %72

72:                                               ; preds = %71, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %73

73:                                               ; preds = %72
  %74 = load i64, ptr %8, align 8, !tbaa !5
  %75 = add nsw i64 %74, 1
  store i64 %75, ptr %8, align 8, !tbaa !5
  br label %16, !llvm.loop !9

76:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %77 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %12)
          to label %78 unwind label %103

78:                                               ; preds = %76
  br label %79

79:                                               ; preds = %223, %78
  %80 = load i64, ptr %12, align 8, !tbaa !5
  %81 = add nsw i64 %80, -1
  store i64 %81, ptr %12, align 8, !tbaa !5
  %82 = icmp ne i64 %80, 0
  br i1 %82, label %83, label %224

83:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %84 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.3, ptr noundef %13, ptr noundef %14)
          to label %85 unwind label %107

85:                                               ; preds = %83
  %86 = load i8, ptr %13, align 1, !tbaa !11
  %87 = sext i8 %86 to i32
  %88 = icmp eq i32 %87, 43
  br i1 %88, label %89, label %143

89:                                               ; preds = %85
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %91 unwind label %107

91:                                               ; preds = %89
  %92 = load i64, ptr %90, align 8, !tbaa !5
  %93 = add nsw i64 %92, 1
  store i64 %93, ptr %90, align 8, !tbaa !5
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %95 unwind label %107

95:                                               ; preds = %91
  %96 = load i64, ptr %94, align 8, !tbaa !5
  %97 = icmp eq i64 %96, 8
  br i1 %97, label %98, label %111

98:                                               ; preds = %95
  %99 = load i64, ptr %7, align 8, !tbaa !5
  %100 = add nsw i64 %99, 1
  store i64 %100, ptr %7, align 8, !tbaa !5
  %101 = load i64, ptr %6, align 8, !tbaa !5
  %102 = add nsw i64 %101, -1
  store i64 %102, ptr %6, align 8, !tbaa !5
  br label %142

103:                                              ; preds = %76
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %10, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %11, align 4
  br label %226

107:                                              ; preds = %218, %181, %171, %161, %149, %147, %131, %121, %111, %91, %89, %83
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %10, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  br label %226

111:                                              ; preds = %95
  %112 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %113 unwind label %107

113:                                              ; preds = %111
  %114 = load i64, ptr %112, align 8, !tbaa !5
  %115 = icmp eq i64 %114, 6
  br i1 %115, label %116, label %121

116:                                              ; preds = %113
  %117 = load i64, ptr %6, align 8, !tbaa !5
  %118 = add nsw i64 %117, 1
  store i64 %118, ptr %6, align 8, !tbaa !5
  %119 = load i64, ptr %5, align 8, !tbaa !5
  %120 = add nsw i64 %119, -1
  store i64 %120, ptr %5, align 8, !tbaa !5
  br label %141

121:                                              ; preds = %113
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %123 unwind label %107

123:                                              ; preds = %121
  %124 = load i64, ptr %122, align 8, !tbaa !5
  %125 = icmp eq i64 %124, 4
  br i1 %125, label %126, label %131

126:                                              ; preds = %123
  %127 = load i64, ptr %5, align 8, !tbaa !5
  %128 = add nsw i64 %127, 1
  store i64 %128, ptr %5, align 8, !tbaa !5
  %129 = load i64, ptr %4, align 8, !tbaa !5
  %130 = add nsw i64 %129, -1
  store i64 %130, ptr %4, align 8, !tbaa !5
  br label %140

131:                                              ; preds = %123
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %133 unwind label %107

133:                                              ; preds = %131
  %134 = load i64, ptr %132, align 8, !tbaa !5
  %135 = icmp eq i64 %134, 2
  br i1 %135, label %136, label %139

136:                                              ; preds = %133
  %137 = load i64, ptr %4, align 8, !tbaa !5
  %138 = add nsw i64 %137, 1
  store i64 %138, ptr %4, align 8, !tbaa !5
  br label %139

139:                                              ; preds = %136, %133
  br label %140

140:                                              ; preds = %139, %126
  br label %141

141:                                              ; preds = %140, %116
  br label %142

142:                                              ; preds = %141, %98
  br label %194

143:                                              ; preds = %85
  %144 = load i8, ptr %13, align 1, !tbaa !11
  %145 = sext i8 %144 to i32
  %146 = icmp eq i32 %145, 45
  br i1 %146, label %147, label %193

147:                                              ; preds = %143
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %149 unwind label %107

149:                                              ; preds = %147
  %150 = load i64, ptr %148, align 8, !tbaa !5
  %151 = add nsw i64 %150, -1
  store i64 %151, ptr %148, align 8, !tbaa !5
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %153 unwind label %107

153:                                              ; preds = %149
  %154 = load i64, ptr %152, align 8, !tbaa !5
  %155 = icmp eq i64 %154, 7
  br i1 %155, label %156, label %161

156:                                              ; preds = %153
  %157 = load i64, ptr %7, align 8, !tbaa !5
  %158 = add nsw i64 %157, -1
  store i64 %158, ptr %7, align 8, !tbaa !5
  %159 = load i64, ptr %6, align 8, !tbaa !5
  %160 = add nsw i64 %159, 1
  store i64 %160, ptr %6, align 8, !tbaa !5
  br label %192

161:                                              ; preds = %153
  %162 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %163 unwind label %107

163:                                              ; preds = %161
  %164 = load i64, ptr %162, align 8, !tbaa !5
  %165 = icmp eq i64 %164, 5
  br i1 %165, label %166, label %171

166:                                              ; preds = %163
  %167 = load i64, ptr %6, align 8, !tbaa !5
  %168 = add nsw i64 %167, -1
  store i64 %168, ptr %6, align 8, !tbaa !5
  %169 = load i64, ptr %5, align 8, !tbaa !5
  %170 = add nsw i64 %169, 1
  store i64 %170, ptr %5, align 8, !tbaa !5
  br label %191

171:                                              ; preds = %163
  %172 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %173 unwind label %107

173:                                              ; preds = %171
  %174 = load i64, ptr %172, align 8, !tbaa !5
  %175 = icmp eq i64 %174, 3
  br i1 %175, label %176, label %181

176:                                              ; preds = %173
  %177 = load i64, ptr %5, align 8, !tbaa !5
  %178 = add nsw i64 %177, -1
  store i64 %178, ptr %5, align 8, !tbaa !5
  %179 = load i64, ptr %4, align 8, !tbaa !5
  %180 = add nsw i64 %179, 1
  store i64 %180, ptr %4, align 8, !tbaa !5
  br label %190

181:                                              ; preds = %173
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %183 unwind label %107

183:                                              ; preds = %181
  %184 = load i64, ptr %182, align 8, !tbaa !5
  %185 = icmp eq i64 %184, 1
  br i1 %185, label %186, label %189

186:                                              ; preds = %183
  %187 = load i64, ptr %4, align 8, !tbaa !5
  %188 = add nsw i64 %187, -1
  store i64 %188, ptr %4, align 8, !tbaa !5
  br label %189

189:                                              ; preds = %186, %183
  br label %190

190:                                              ; preds = %189, %176
  br label %191

191:                                              ; preds = %190, %166
  br label %192

192:                                              ; preds = %191, %156
  br label %193

193:                                              ; preds = %192, %143
  br label %194

194:                                              ; preds = %193, %142
  %195 = load i64, ptr %7, align 8, !tbaa !5
  %196 = icmp sgt i64 %195, 0
  br i1 %196, label %218, label %197

197:                                              ; preds = %194
  %198 = load i64, ptr %6, align 8, !tbaa !5
  %199 = icmp sgt i64 %198, 0
  br i1 %199, label %200, label %206

200:                                              ; preds = %197
  %201 = load i64, ptr %5, align 8, !tbaa !5
  %202 = icmp sgt i64 %201, 0
  br i1 %202, label %218, label %203

203:                                              ; preds = %200
  %204 = load i64, ptr %4, align 8, !tbaa !5
  %205 = icmp sgt i64 %204, 0
  br i1 %205, label %218, label %206

206:                                              ; preds = %203, %197
  %207 = load i64, ptr %5, align 8, !tbaa !5
  %208 = icmp sgt i64 %207, 0
  br i1 %208, label %209, label %212

209:                                              ; preds = %206
  %210 = load i64, ptr %4, align 8, !tbaa !5
  %211 = icmp sgt i64 %210, 1
  br i1 %211, label %218, label %212

212:                                              ; preds = %209, %206
  %213 = load i64, ptr %5, align 8, !tbaa !5
  %214 = icmp sgt i64 %213, 1
  br i1 %214, label %218, label %215

215:                                              ; preds = %212
  %216 = load i64, ptr %6, align 8, !tbaa !5
  %217 = icmp sgt i64 %216, 1
  br label %218

218:                                              ; preds = %215, %212, %209, %203, %200, %194
  %219 = phi i1 [ true, %212 ], [ true, %209 ], [ true, %203 ], [ true, %200 ], [ true, %194 ], [ %217, %215 ]
  %220 = zext i1 %219 to i64
  %221 = select i1 %219, ptr @.str.4, ptr @.str.5
  %222 = invoke i32 @puts(ptr noundef %221)
          to label %223 unwind label %107

223:                                              ; preds = %218
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  br label %79, !llvm.loop !12

224:                                              ; preds = %79
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  %225 = load i32, ptr %1, align 4
  ret i32 %225

226:                                              ; preds = %107, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %227

227:                                              ; preds = %226, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  br label %228

228:                                              ; preds = %227
  %229 = load ptr, ptr %10, align 8
  %230 = load i32, ptr %11, align 4
  %231 = insertvalue { ptr, i32 } poison, ptr %229, 0
  %232 = insertvalue { ptr, i32 } %231, i32 %230, 1
  resume { ptr, i32 } %232
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

declare i32 @puts(ptr noundef) #2

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 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 #4 = { 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 #5 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !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<long, std::pair<const long, long>, std::_Select1st<std::pair<const long, long>>, std::less<long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<long, std::pair<const long, long>, std::_Select1st<std::pair<const long, long>>, std::less<long>>::_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 }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca %"class.std::map", align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i8, align 1
  %6 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %2) #5
  call void @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #5
  %8 = load i64, ptr %1, align 8, !tbaa !5
  %9 = icmp sgt i64 %8, 0
  br i1 %9, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %49, %0
  %.049.lcssa = phi i64 [ 0, %0 ], [ %.150, %49 ]
  %.045.lcssa = phi i64 [ 0, %0 ], [ %.146, %49 ]
  %.041.lcssa = phi i64 [ 0, %0 ], [ %.142, %49 ]
  %.040.lcssa = phi i64 [ 0, %0 ], [ %.1, %49 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %4)
  %11 = load i64, ptr %4, align 8, !tbaa !5
  %12 = add nsw i64 %11, -1
  store i64 %12, ptr %4, align 8, !tbaa !5
  %.not71 = icmp eq i64 %11, 0
  br i1 %.not71, label %._crit_edge78, label %.lr.ph77

.lr.ph:                                           ; preds = %0, %49
  %.03967 = phi i64 [ %50, %49 ], [ 0, %0 ]
  %.04066 = phi i64 [ %.1, %49 ], [ 0, %0 ]
  %.04165 = phi i64 [ %.142, %49 ], [ 0, %0 ]
  %.04564 = phi i64 [ %.146, %49 ], [ 0, %0 ]
  %.04963 = phi i64 [ %.150, %49 ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %3)
  %14 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %15 unwind label %25

15:                                               ; preds = %.lr.ph
  %16 = load i64, ptr %14, align 8, !tbaa !5
  %17 = add nsw i64 %16, 1
  store i64 %17, ptr %14, align 8, !tbaa !5
  %18 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %19 unwind label %25

19:                                               ; preds = %15
  %20 = load i64, ptr %18, align 8, !tbaa !5
  %21 = icmp eq i64 %20, 8
  br i1 %21, label %22, label %27

22:                                               ; preds = %19
  %23 = add nsw i64 %.04066, 1
  %24 = add nsw i64 %.04165, -1
  br label %49

25:                                               ; preds = %43, %35, %27, %15, %.lr.ph
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %142

27:                                               ; preds = %19
  %28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %29 unwind label %25

29:                                               ; preds = %27
  %30 = load i64, ptr %28, align 8, !tbaa !5
  %31 = icmp eq i64 %30, 6
  br i1 %31, label %32, label %35

32:                                               ; preds = %29
  %33 = add nsw i64 %.04165, 1
  %34 = add nsw i64 %.04564, -1
  br label %49

35:                                               ; preds = %29
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %37 unwind label %25

37:                                               ; preds = %35
  %38 = load i64, ptr %36, align 8, !tbaa !5
  %39 = icmp eq i64 %38, 4
  br i1 %39, label %40, label %43

40:                                               ; preds = %37
  %41 = add nsw i64 %.04564, 1
  %42 = add nsw i64 %.04963, -1
  br label %49

43:                                               ; preds = %37
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %45 unwind label %25

45:                                               ; preds = %43
  %46 = load i64, ptr %44, align 8, !tbaa !5
  %47 = icmp eq i64 %46, 2
  %48 = zext i1 %47 to i64
  %spec.select = add nsw i64 %.04963, %48
  br label %49

49:                                               ; preds = %45, %32, %40, %22
  %.150 = phi i64 [ %.04963, %22 ], [ %.04963, %32 ], [ %42, %40 ], [ %spec.select, %45 ]
  %.146 = phi i64 [ %.04564, %22 ], [ %34, %32 ], [ %41, %40 ], [ %.04564, %45 ]
  %.142 = phi i64 [ %24, %22 ], [ %33, %32 ], [ %.04165, %40 ], [ %.04165, %45 ]
  %.1 = phi i64 [ %23, %22 ], [ %.04066, %32 ], [ %.04066, %40 ], [ %.04066, %45 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  %50 = add nuw nsw i64 %.03967, 1
  %51 = load i64, ptr %1, align 8, !tbaa !5
  %52 = icmp slt i64 %50, %51
  br i1 %52, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.lr.ph77:                                         ; preds = %._crit_edge, %137
  %.275 = phi i64 [ %.3, %137 ], [ %.040.lcssa, %._crit_edge ]
  %.24374 = phi i64 [ %.344, %137 ], [ %.041.lcssa, %._crit_edge ]
  %.24773 = phi i64 [ %.348, %137 ], [ %.045.lcssa, %._crit_edge ]
  %.25172 = phi i64 [ %.352, %137 ], [ %.049.lcssa, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %53 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.3, ptr noundef nonnull %5, ptr noundef nonnull %6)
  %54 = load i8, ptr %5, align 1, !tbaa !11
  switch i8 %54, label %125 [
    i8 43, label %55
    i8 45, label %91
  ]

55:                                               ; preds = %.lr.ph77
  %56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %57 unwind label %67

57:                                               ; preds = %55
  %58 = load i64, ptr %56, align 8, !tbaa !5
  %59 = add nsw i64 %58, 1
  store i64 %59, ptr %56, align 8, !tbaa !5
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %61 unwind label %67

61:                                               ; preds = %57
  %62 = load i64, ptr %60, align 8, !tbaa !5
  %63 = icmp eq i64 %62, 8
  br i1 %63, label %64, label %69

64:                                               ; preds = %61
  %65 = add nsw i64 %.275, 1
  %66 = add nsw i64 %.24374, -1
  br label %125

67:                                               ; preds = %119, %111, %103, %93, %91, %85, %77, %69, %57, %55
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %142

69:                                               ; preds = %61
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %71 unwind label %67

71:                                               ; preds = %69
  %72 = load i64, ptr %70, align 8, !tbaa !5
  %73 = icmp eq i64 %72, 6
  br i1 %73, label %74, label %77

74:                                               ; preds = %71
  %75 = add nsw i64 %.24374, 1
  %76 = add nsw i64 %.24773, -1
  br label %125

77:                                               ; preds = %71
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %79 unwind label %67

79:                                               ; preds = %77
  %80 = load i64, ptr %78, align 8, !tbaa !5
  %81 = icmp eq i64 %80, 4
  br i1 %81, label %82, label %85

82:                                               ; preds = %79
  %83 = add nsw i64 %.24773, 1
  %84 = add nsw i64 %.25172, -1
  br label %125

85:                                               ; preds = %79
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %87 unwind label %67

87:                                               ; preds = %85
  %88 = load i64, ptr %86, align 8, !tbaa !5
  %89 = icmp eq i64 %88, 2
  %90 = zext i1 %89 to i64
  %spec.select55 = add nsw i64 %.25172, %90
  br label %125

91:                                               ; preds = %.lr.ph77
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %93 unwind label %67

93:                                               ; preds = %91
  %94 = load i64, ptr %92, align 8, !tbaa !5
  %95 = add nsw i64 %94, -1
  store i64 %95, ptr %92, align 8, !tbaa !5
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %97 unwind label %67

97:                                               ; preds = %93
  %98 = load i64, ptr %96, align 8, !tbaa !5
  %99 = icmp eq i64 %98, 7
  br i1 %99, label %100, label %103

100:                                              ; preds = %97
  %101 = add nsw i64 %.275, -1
  %102 = add nsw i64 %.24374, 1
  br label %125

103:                                              ; preds = %97
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %105 unwind label %67

105:                                              ; preds = %103
  %106 = load i64, ptr %104, align 8, !tbaa !5
  %107 = icmp eq i64 %106, 5
  br i1 %107, label %108, label %111

108:                                              ; preds = %105
  %109 = add nsw i64 %.24374, -1
  %110 = add nsw i64 %.24773, 1
  br label %125

111:                                              ; preds = %105
  %112 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %113 unwind label %67

113:                                              ; preds = %111
  %114 = load i64, ptr %112, align 8, !tbaa !5
  %115 = icmp eq i64 %114, 3
  br i1 %115, label %116, label %119

116:                                              ; preds = %113
  %117 = add nsw i64 %.24773, -1
  %118 = add nsw i64 %.25172, 1
  br label %125

119:                                              ; preds = %113
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %121 unwind label %67

121:                                              ; preds = %119
  %122 = load i64, ptr %120, align 8, !tbaa !5
  %123 = icmp eq i64 %122, 1
  %124 = sext i1 %123 to i64
  %spec.select56 = add nsw i64 %.25172, %124
  br label %125

125:                                              ; preds = %121, %87, %.lr.ph77, %108, %116, %100, %64, %82, %74
  %.352 = phi i64 [ %.25172, %64 ], [ %.25172, %74 ], [ %84, %82 ], [ %.25172, %100 ], [ %.25172, %108 ], [ %118, %116 ], [ %spec.select55, %87 ], [ %.25172, %.lr.ph77 ], [ %spec.select56, %121 ]
  %.348 = phi i64 [ %.24773, %64 ], [ %76, %74 ], [ %83, %82 ], [ %.24773, %100 ], [ %110, %108 ], [ %117, %116 ], [ %.24773, %87 ], [ %.24773, %.lr.ph77 ], [ %.24773, %121 ]
  %.344 = phi i64 [ %66, %64 ], [ %75, %74 ], [ %.24374, %82 ], [ %102, %100 ], [ %109, %108 ], [ %.24374, %116 ], [ %.24374, %87 ], [ %.24374, %.lr.ph77 ], [ %.24374, %121 ]
  %.3 = phi i64 [ %65, %64 ], [ %.275, %74 ], [ %.275, %82 ], [ %101, %100 ], [ %.275, %108 ], [ %.275, %116 ], [ %.275, %87 ], [ %.275, %.lr.ph77 ], [ %.275, %121 ]
  %126 = icmp sgt i64 %.3, 0
  br i1 %126, label %.thread, label %127

127:                                              ; preds = %125
  %128 = icmp sgt i64 %.344, 0
  br i1 %128, label %129, label %132

129:                                              ; preds = %127
  %130 = icmp sgt i64 %.348, 0
  %131 = icmp sgt i64 %.352, 0
  %or.cond = select i1 %130, i1 true, i1 %131
  br i1 %or.cond, label %.thread, label %132

132:                                              ; preds = %127, %129
  %133 = icmp sgt i64 %.348, 0
  %134 = icmp sgt i64 %.352, 1
  %or.cond3 = select i1 %133, i1 %134, i1 false
  %135 = icmp sgt i64 %.348, 1
  %or.cond5 = or i1 %135, %or.cond3
  %136 = icmp sgt i64 %.344, 1
  %spec.select57 = select i1 %or.cond5, i1 true, i1 %136
  %cond.fr = freeze i1 %spec.select57
  br i1 %cond.fr, label %.thread, label %137

.thread:                                          ; preds = %125, %129, %132
  br label %137

137:                                              ; preds = %132, %.thread
  %138 = phi ptr [ @.str.4, %.thread ], [ @.str.5, %132 ]
  %139 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %138)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  %140 = load i64, ptr %4, align 8, !tbaa !5
  %141 = add nsw i64 %140, -1
  store i64 %141, ptr %4, align 8, !tbaa !5
  %.not = icmp eq i64 %140, 0
  br i1 %.not, label %._crit_edge78, label %.lr.ph77, !llvm.loop !12

._crit_edge78:                                    ; preds = %137, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  ret i32 0

142:                                              ; preds = %67, %25
  %.pn = phi { ptr, i32 } [ %26, %25 ], [ %68, %67 ]
  call void @_ZNSt3mapIllSt4lessIlESaISt4pairIKllEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  resume { ptr, i32 } %.pn
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #2

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !10}


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