; LLVM IR from DionysiosB/CodeForces :: 0800-0899 (887B-CubesForMasha)

; 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::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, 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::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 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 i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::set", align 8
  %5 = alloca %"class.std::set", align 8
  %6 = alloca %"class.std::set", align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::pair", align 8
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %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 i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 6, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %39 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3)
  call void @llvm.lifetime.start.p0(i64 48, ptr %4) #5
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr %5) #5
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr %6) #5
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %40

40:                                               ; preds = %53, %0
  %41 = load i64, ptr %7, align 8, !tbaa !9
  %42 = icmp slt i64 %41, 6
  br i1 %42, label %44, label %43

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

44:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %45 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %8)
          to label %46 unwind label %56

46:                                               ; preds = %44
  %47 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %48 unwind label %56

48:                                               ; preds = %46
  %49 = getelementptr inbounds { ptr, i8 }, ptr %11, i32 0, i32 0
  %50 = extractvalue { ptr, i8 } %47, 0
  store ptr %50, ptr %49, align 8
  %51 = getelementptr inbounds { ptr, i8 }, ptr %11, i32 0, i32 1
  %52 = extractvalue { ptr, i8 } %47, 1
  store i8 %52, ptr %51, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %53

53:                                               ; preds = %48
  %54 = load i64, ptr %7, align 8, !tbaa !9
  %55 = add nsw i64 %54, 1
  store i64 %55, ptr %7, align 8, !tbaa !9
  br label %40, !llvm.loop !11

56:                                               ; preds = %46, %44
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %9, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %423

60:                                               ; preds = %43
  %61 = load i32, ptr %3, align 4, !tbaa !5
  %62 = icmp sgt i32 %61, 1
  br i1 %62, label %63, label %85

63:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %64

64:                                               ; preds = %77, %63
  %65 = load i64, ptr %12, align 8, !tbaa !9
  %66 = icmp slt i64 %65, 6
  br i1 %66, label %68, label %67

67:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %84

68:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %69 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %13)
          to label %70 unwind label %80

70:                                               ; preds = %68
  %71 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %72 unwind label %80

72:                                               ; preds = %70
  %73 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 0
  %74 = extractvalue { ptr, i8 } %71, 0
  store ptr %74, ptr %73, align 8
  %75 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 1
  %76 = extractvalue { ptr, i8 } %71, 1
  store i8 %76, ptr %75, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %77

77:                                               ; preds = %72
  %78 = load i64, ptr %12, align 8, !tbaa !9
  %79 = add nsw i64 %78, 1
  store i64 %79, ptr %12, align 8, !tbaa !9
  br label %64, !llvm.loop !13

80:                                               ; preds = %70, %68
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %9, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %423

84:                                               ; preds = %67
  br label %85

85:                                               ; preds = %84, %60
  %86 = load i32, ptr %3, align 4, !tbaa !5
  %87 = icmp sgt i32 %86, 2
  br i1 %87, label %88, label %110

88:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %89

89:                                               ; preds = %102, %88
  %90 = load i64, ptr %15, align 8, !tbaa !9
  %91 = icmp slt i64 %90, 6
  br i1 %91, label %93, label %92

92:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %109

93:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %94 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %16)
          to label %95 unwind label %105

95:                                               ; preds = %93
  %96 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %97 unwind label %105

97:                                               ; preds = %95
  %98 = getelementptr inbounds { ptr, i8 }, ptr %17, i32 0, i32 0
  %99 = extractvalue { ptr, i8 } %96, 0
  store ptr %99, ptr %98, align 8
  %100 = getelementptr inbounds { ptr, i8 }, ptr %17, i32 0, i32 1
  %101 = extractvalue { ptr, i8 } %96, 1
  store i8 %101, ptr %100, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %102

102:                                              ; preds = %97
  %103 = load i64, ptr %15, align 8, !tbaa !9
  %104 = add nsw i64 %103, 1
  store i64 %104, ptr %15, align 8, !tbaa !9
  br label %89, !llvm.loop !14

105:                                              ; preds = %95, %93
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %9, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %423

109:                                              ; preds = %92
  br label %110

110:                                              ; preds = %109, %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store i64 1, ptr %19, align 8, !tbaa !9
  br label %111

111:                                              ; preds = %408, %110
  %112 = load i64, ptr %19, align 8, !tbaa !9
  %113 = icmp slt i64 %112, 1000
  br i1 %113, label %115, label %114

114:                                              ; preds = %111
  store i32 11, ptr %20, align 4
  br label %411

115:                                              ; preds = %111
  %116 = load i64, ptr %19, align 8, !tbaa !9
  %117 = icmp slt i64 %116, 10
  br i1 %117, label %118, label %157

118:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %119 = load i64, ptr %19, align 8, !tbaa !9
  %120 = trunc i64 %119 to i32
  store i32 %120, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %121 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %122 unwind label %141

122:                                              ; preds = %118
  %123 = icmp ne i64 %121, 0
  br i1 %123, label %136, label %124

124:                                              ; preds = %122
  %125 = load i64, ptr %19, align 8, !tbaa !9
  %126 = trunc i64 %125 to i32
  store i32 %126, ptr %22, align 4, !tbaa !5
  %127 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %128 unwind label %145

128:                                              ; preds = %124
  %129 = icmp ne i64 %127, 0
  br i1 %129, label %136, label %130

130:                                              ; preds = %128
  %131 = load i64, ptr %19, align 8, !tbaa !9
  %132 = trunc i64 %131 to i32
  store i32 %132, ptr %23, align 4, !tbaa !5
  %133 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %134 unwind label %149

134:                                              ; preds = %130
  %135 = icmp ne i64 %133, 0
  br label %136

136:                                              ; preds = %134, %128, %122
  %137 = phi i1 [ true, %128 ], [ true, %122 ], [ %135, %134 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br i1 %137, label %138, label %155

138:                                              ; preds = %136
  %139 = load i64, ptr %19, align 8, !tbaa !9
  %140 = trunc i64 %139 to i32
  store i32 %140, ptr %18, align 4, !tbaa !5
  br label %156

141:                                              ; preds = %118
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %9, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %10, align 4
  br label %154

145:                                              ; preds = %124
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %9, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %10, align 4
  br label %153

149:                                              ; preds = %130
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %9, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %153

153:                                              ; preds = %149, %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %154

154:                                              ; preds = %153, %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %412

155:                                              ; preds = %136
  store i32 11, ptr %20, align 4
  br label %411

156:                                              ; preds = %138
  br label %407

157:                                              ; preds = %115
  %158 = load i64, ptr %19, align 8, !tbaa !9
  %159 = icmp slt i64 %158, 100
  br i1 %159, label %160, label %312

160:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %161 = load i64, ptr %19, align 8, !tbaa !9
  %162 = sdiv i64 %161, 10
  %163 = trunc i64 %162 to i32
  store i32 %163, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  %164 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %165 unwind label %251

165:                                              ; preds = %160
  %166 = icmp ne i64 %164, 0
  br i1 %166, label %167, label %174

167:                                              ; preds = %165
  %168 = load i64, ptr %19, align 8, !tbaa !9
  %169 = srem i64 %168, 10
  %170 = trunc i64 %169 to i32
  store i32 %170, ptr %25, align 4, !tbaa !5
  %171 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %172 unwind label %255

172:                                              ; preds = %167
  %173 = icmp ne i64 %171, 0
  br i1 %173, label %246, label %174

174:                                              ; preds = %172, %165
  %175 = load i64, ptr %19, align 8, !tbaa !9
  %176 = sdiv i64 %175, 10
  %177 = trunc i64 %176 to i32
  store i32 %177, ptr %26, align 4, !tbaa !5
  %178 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %179 unwind label %259

179:                                              ; preds = %174
  %180 = icmp ne i64 %178, 0
  br i1 %180, label %181, label %188

181:                                              ; preds = %179
  %182 = load i64, ptr %19, align 8, !tbaa !9
  %183 = srem i64 %182, 10
  %184 = trunc i64 %183 to i32
  store i32 %184, ptr %27, align 4, !tbaa !5
  %185 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %186 unwind label %263

186:                                              ; preds = %181
  %187 = icmp ne i64 %185, 0
  br i1 %187, label %246, label %188

188:                                              ; preds = %186, %179
  %189 = load i64, ptr %19, align 8, !tbaa !9
  %190 = sdiv i64 %189, 10
  %191 = trunc i64 %190 to i32
  store i32 %191, ptr %28, align 4, !tbaa !5
  %192 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %28)
          to label %193 unwind label %267

193:                                              ; preds = %188
  %194 = icmp ne i64 %192, 0
  br i1 %194, label %195, label %202

195:                                              ; preds = %193
  %196 = load i64, ptr %19, align 8, !tbaa !9
  %197 = srem i64 %196, 10
  %198 = trunc i64 %197 to i32
  store i32 %198, ptr %29, align 4, !tbaa !5
  %199 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %200 unwind label %271

200:                                              ; preds = %195
  %201 = icmp ne i64 %199, 0
  br i1 %201, label %246, label %202

202:                                              ; preds = %200, %193
  %203 = load i64, ptr %19, align 8, !tbaa !9
  %204 = sdiv i64 %203, 10
  %205 = trunc i64 %204 to i32
  store i32 %205, ptr %30, align 4, !tbaa !5
  %206 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %30)
          to label %207 unwind label %275

207:                                              ; preds = %202
  %208 = icmp ne i64 %206, 0
  br i1 %208, label %209, label %216

209:                                              ; preds = %207
  %210 = load i64, ptr %19, align 8, !tbaa !9
  %211 = srem i64 %210, 10
  %212 = trunc i64 %211 to i32
  store i32 %212, ptr %31, align 4, !tbaa !5
  %213 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %31)
          to label %214 unwind label %279

214:                                              ; preds = %209
  %215 = icmp ne i64 %213, 0
  br i1 %215, label %246, label %216

216:                                              ; preds = %214, %207
  %217 = load i64, ptr %19, align 8, !tbaa !9
  %218 = sdiv i64 %217, 10
  %219 = trunc i64 %218 to i32
  store i32 %219, ptr %32, align 4, !tbaa !5
  %220 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %32)
          to label %221 unwind label %283

221:                                              ; preds = %216
  %222 = icmp ne i64 %220, 0
  br i1 %222, label %223, label %230

223:                                              ; preds = %221
  %224 = load i64, ptr %19, align 8, !tbaa !9
  %225 = srem i64 %224, 10
  %226 = trunc i64 %225 to i32
  store i32 %226, ptr %33, align 4, !tbaa !5
  %227 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %33)
          to label %228 unwind label %287

228:                                              ; preds = %223
  %229 = icmp ne i64 %227, 0
  br i1 %229, label %246, label %230

230:                                              ; preds = %228, %221
  %231 = load i64, ptr %19, align 8, !tbaa !9
  %232 = sdiv i64 %231, 10
  %233 = trunc i64 %232 to i32
  store i32 %233, ptr %34, align 4, !tbaa !5
  %234 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %34)
          to label %235 unwind label %291

235:                                              ; preds = %230
  %236 = icmp ne i64 %234, 0
  br i1 %236, label %237, label %244

237:                                              ; preds = %235
  %238 = load i64, ptr %19, align 8, !tbaa !9
  %239 = srem i64 %238, 10
  %240 = trunc i64 %239 to i32
  store i32 %240, ptr %35, align 4, !tbaa !5
  %241 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %242 unwind label %295

242:                                              ; preds = %237
  %243 = icmp ne i64 %241, 0
  br label %244

244:                                              ; preds = %242, %235
  %245 = phi i1 [ false, %235 ], [ %243, %242 ]
  br label %246

246:                                              ; preds = %244, %228, %214, %200, %186, %172
  %247 = phi i1 [ true, %228 ], [ true, %214 ], [ true, %200 ], [ true, %186 ], [ true, %172 ], [ %245, %244 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br i1 %247, label %248, label %310

248:                                              ; preds = %246
  %249 = load i64, ptr %19, align 8, !tbaa !9
  %250 = trunc i64 %249 to i32
  store i32 %250, ptr %18, align 4, !tbaa !5
  br label %311

251:                                              ; preds = %160
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %9, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %10, align 4
  br label %309

255:                                              ; preds = %167
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %9, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %10, align 4
  br label %308

259:                                              ; preds = %174
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %9, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %10, align 4
  br label %307

263:                                              ; preds = %181
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %9, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %10, align 4
  br label %306

267:                                              ; preds = %188
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %9, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %10, align 4
  br label %305

271:                                              ; preds = %195
  %272 = landingpad { ptr, i32 }
          cleanup
  %273 = extractvalue { ptr, i32 } %272, 0
  store ptr %273, ptr %9, align 8
  %274 = extractvalue { ptr, i32 } %272, 1
  store i32 %274, ptr %10, align 4
  br label %304

275:                                              ; preds = %202
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %9, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %10, align 4
  br label %303

279:                                              ; preds = %209
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %9, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %10, align 4
  br label %302

283:                                              ; preds = %216
  %284 = landingpad { ptr, i32 }
          cleanup
  %285 = extractvalue { ptr, i32 } %284, 0
  store ptr %285, ptr %9, align 8
  %286 = extractvalue { ptr, i32 } %284, 1
  store i32 %286, ptr %10, align 4
  br label %301

287:                                              ; preds = %223
  %288 = landingpad { ptr, i32 }
          cleanup
  %289 = extractvalue { ptr, i32 } %288, 0
  store ptr %289, ptr %9, align 8
  %290 = extractvalue { ptr, i32 } %288, 1
  store i32 %290, ptr %10, align 4
  br label %300

291:                                              ; preds = %230
  %292 = landingpad { ptr, i32 }
          cleanup
  %293 = extractvalue { ptr, i32 } %292, 0
  store ptr %293, ptr %9, align 8
  %294 = extractvalue { ptr, i32 } %292, 1
  store i32 %294, ptr %10, align 4
  br label %299

295:                                              ; preds = %237
  %296 = landingpad { ptr, i32 }
          cleanup
  %297 = extractvalue { ptr, i32 } %296, 0
  store ptr %297, ptr %9, align 8
  %298 = extractvalue { ptr, i32 } %296, 1
  store i32 %298, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  br label %299

299:                                              ; preds = %295, %291
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  br label %300

300:                                              ; preds = %299, %287
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  br label %301

301:                                              ; preds = %300, %283
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  br label %302

302:                                              ; preds = %301, %279
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  br label %303

303:                                              ; preds = %302, %275
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  br label %304

304:                                              ; preds = %303, %271
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %305

305:                                              ; preds = %304, %267
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  br label %306

306:                                              ; preds = %305, %263
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %307

307:                                              ; preds = %306, %259
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %308

308:                                              ; preds = %307, %255
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %309

309:                                              ; preds = %308, %251
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %412

310:                                              ; preds = %246
  store i32 11, ptr %20, align 4
  br label %411

311:                                              ; preds = %248
  br label %406

312:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #5
  %313 = load i64, ptr %19, align 8, !tbaa !9
  %314 = srem i64 %313, 10
  %315 = trunc i64 %314 to i32
  store i32 %315, ptr %36, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #5
  %316 = load i64, ptr %19, align 8, !tbaa !9
  %317 = sdiv i64 %316, 10
  %318 = srem i64 %317, 10
  %319 = trunc i64 %318 to i32
  store i32 %319, ptr %37, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #5
  %320 = load i64, ptr %19, align 8, !tbaa !9
  %321 = sdiv i64 %320, 100
  %322 = trunc i64 %321 to i32
  store i32 %322, ptr %38, align 4, !tbaa !5
  %323 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %36)
          to label %324 unwind label %397

324:                                              ; preds = %312
  %325 = icmp ne i64 %323, 0
  br i1 %325, label %326, label %334

326:                                              ; preds = %324
  %327 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %328 unwind label %397

328:                                              ; preds = %326
  %329 = icmp ne i64 %327, 0
  br i1 %329, label %330, label %334

330:                                              ; preds = %328
  %331 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %332 unwind label %397

332:                                              ; preds = %330
  %333 = icmp ne i64 %331, 0
  br i1 %333, label %394, label %334

334:                                              ; preds = %332, %328, %324
  %335 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %36)
          to label %336 unwind label %397

336:                                              ; preds = %334
  %337 = icmp ne i64 %335, 0
  br i1 %337, label %338, label %346

338:                                              ; preds = %336
  %339 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %340 unwind label %397

340:                                              ; preds = %338
  %341 = icmp ne i64 %339, 0
  br i1 %341, label %342, label %346

342:                                              ; preds = %340
  %343 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %344 unwind label %397

344:                                              ; preds = %342
  %345 = icmp ne i64 %343, 0
  br i1 %345, label %394, label %346

346:                                              ; preds = %344, %340, %336
  %347 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %348 unwind label %397

348:                                              ; preds = %346
  %349 = icmp ne i64 %347, 0
  br i1 %349, label %350, label %358

350:                                              ; preds = %348
  %351 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %36)
          to label %352 unwind label %397

352:                                              ; preds = %350
  %353 = icmp ne i64 %351, 0
  br i1 %353, label %354, label %358

354:                                              ; preds = %352
  %355 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %356 unwind label %397

356:                                              ; preds = %354
  %357 = icmp ne i64 %355, 0
  br i1 %357, label %394, label %358

358:                                              ; preds = %356, %352, %348
  %359 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %360 unwind label %397

360:                                              ; preds = %358
  %361 = icmp ne i64 %359, 0
  br i1 %361, label %362, label %370

362:                                              ; preds = %360
  %363 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %364 unwind label %397

364:                                              ; preds = %362
  %365 = icmp ne i64 %363, 0
  br i1 %365, label %366, label %370

366:                                              ; preds = %364
  %367 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %36)
          to label %368 unwind label %397

368:                                              ; preds = %366
  %369 = icmp ne i64 %367, 0
  br i1 %369, label %394, label %370

370:                                              ; preds = %368, %364, %360
  %371 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %372 unwind label %397

372:                                              ; preds = %370
  %373 = icmp ne i64 %371, 0
  br i1 %373, label %374, label %382

374:                                              ; preds = %372
  %375 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %36)
          to label %376 unwind label %397

376:                                              ; preds = %374
  %377 = icmp ne i64 %375, 0
  br i1 %377, label %378, label %382

378:                                              ; preds = %376
  %379 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %380 unwind label %397

380:                                              ; preds = %378
  %381 = icmp ne i64 %379, 0
  br i1 %381, label %394, label %382

382:                                              ; preds = %380, %376, %372
  %383 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %384 unwind label %397

384:                                              ; preds = %382
  %385 = icmp ne i64 %383, 0
  br i1 %385, label %386, label %401

386:                                              ; preds = %384
  %387 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %388 unwind label %397

388:                                              ; preds = %386
  %389 = icmp ne i64 %387, 0
  br i1 %389, label %390, label %401

390:                                              ; preds = %388
  %391 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(4) %36)
          to label %392 unwind label %397

392:                                              ; preds = %390
  %393 = icmp ne i64 %391, 0
  br i1 %393, label %394, label %401

394:                                              ; preds = %392, %380, %368, %356, %344, %332
  %395 = load i64, ptr %19, align 8, !tbaa !9
  %396 = trunc i64 %395 to i32
  store i32 %396, ptr %18, align 4, !tbaa !5
  br label %402

397:                                              ; preds = %390, %386, %382, %378, %374, %370, %366, %362, %358, %354, %350, %346, %342, %338, %334, %330, %326, %312
  %398 = landingpad { ptr, i32 }
          cleanup
  %399 = extractvalue { ptr, i32 } %398, 0
  store ptr %399, ptr %9, align 8
  %400 = extractvalue { ptr, i32 } %398, 1
  store i32 %400, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  br label %412

401:                                              ; preds = %392, %388, %384
  store i32 11, ptr %20, align 4
  br label %403

402:                                              ; preds = %394
  store i32 0, ptr %20, align 4
  br label %403

403:                                              ; preds = %402, %401
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  %404 = load i32, ptr %20, align 4
  switch i32 %404, label %411 [
    i32 0, label %405
  ]

405:                                              ; preds = %403
  br label %406

406:                                              ; preds = %405, %311
  br label %407

407:                                              ; preds = %406, %156
  br label %408

408:                                              ; preds = %407
  %409 = load i64, ptr %19, align 8, !tbaa !9
  %410 = add nsw i64 %409, 1
  store i64 %410, ptr %19, align 8, !tbaa !9
  br label %111, !llvm.loop !15

411:                                              ; preds = %403, %310, %155, %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %413

412:                                              ; preds = %397, %309, %154
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %422

413:                                              ; preds = %411
  %414 = load i32, ptr %18, align 4, !tbaa !5
  %415 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %414)
          to label %416 unwind label %418

416:                                              ; preds = %413
  store i32 0, ptr %1, align 4
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %6) #5
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #5
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %417 = load i32, ptr %1, align 4
  ret i32 %417

418:                                              ; preds = %413
  %419 = landingpad { ptr, i32 }
          cleanup
  %420 = extractvalue { ptr, i32 } %419, 0
  store ptr %420, ptr %9, align 8
  %421 = extractvalue { ptr, i32 } %419, 1
  store i32 %421, ptr %10, align 4
  br label %422

422:                                              ; preds = %418, %412
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %423

423:                                              ; preds = %422, %105, %80, %56
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %6) #5
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #5
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %424

424:                                              ; preds = %423
  %425 = load ptr, ptr %9, align 8
  %426 = load i32, ptr %10, align 4
  %427 = insertvalue { ptr, i32 } poison, ptr %425, 0
  %428 = insertvalue { ptr, i32 } %427, i32 %426, 1
  resume { ptr, i32 } %428
}

; 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 @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


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

%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, 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 }

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 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 i32, align 4
  %2 = alloca %"class.std::set", align 8
  %3 = alloca %"class.std::set", align 8
  %4 = alloca %"class.std::set", align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %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 i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %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
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %26 = 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 @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #5
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #5
  call void @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %5)
  %28 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %31 unwind label %49

.preheader138.preheader:                          ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %29 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %6)
  %30 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %.preheader138.1 unwind label %63

31:                                               ; preds = %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %32 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %5)
  %33 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %34 unwind label %49

34:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %35 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %5)
  %36 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %37 unwind label %49

37:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %38 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %5)
  %39 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %40 unwind label %49

40:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %41 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %5)
  %42 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %43 unwind label %49

43:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %44 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %5)
  %45 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %46 unwind label %49

46:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %47 = load i32, ptr %1, align 4, !tbaa !5
  %48 = icmp sgt i32 %47, 1
  br i1 %48, label %.preheader138.preheader, label %.thread.preheader

49:                                               ; preds = %43, %40, %37, %34, %31, %0
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %255

.preheader138.1:                                  ; preds = %.preheader138.preheader
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %51 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %6)
  %52 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %.preheader138.2 unwind label %63

.preheader138.2:                                  ; preds = %.preheader138.1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %53 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %6)
  %54 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %.preheader138.3 unwind label %63

.preheader138.3:                                  ; preds = %.preheader138.2
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %55 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %6)
  %56 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %.preheader138.4 unwind label %63

.preheader138.4:                                  ; preds = %.preheader138.3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %57 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %6)
  %58 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %.preheader138.5 unwind label %63

.preheader138.5:                                  ; preds = %.preheader138.4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %59 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %6)
  %60 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %61 unwind label %63

61:                                               ; preds = %.preheader138.5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  %.pr = load i32, ptr %1, align 4, !tbaa !5
  %62 = icmp sgt i32 %.pr, 2
  br i1 %62, label %.preheader.preheader, label %.thread.preheader

.thread.preheader:                                ; preds = %.thread.loopexit, %46, %61
  br label %.thread

63:                                               ; preds = %.preheader138.5, %.preheader138.4, %.preheader138.3, %.preheader138.2, %.preheader138.1, %.preheader138.preheader
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  br label %255

.preheader.preheader:                             ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %65 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %7)
  %66 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %.preheader.1 unwind label %77

.preheader.1:                                     ; preds = %.preheader.preheader
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %67 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %7)
  %68 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %.preheader.2 unwind label %77

.preheader.2:                                     ; preds = %.preheader.1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %69 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %7)
  %70 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %.preheader.3 unwind label %77

.preheader.3:                                     ; preds = %.preheader.2
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %71 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %7)
  %72 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %.preheader.4 unwind label %77

.preheader.4:                                     ; preds = %.preheader.3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %73 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %7)
  %74 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %.preheader.5 unwind label %77

.preheader.5:                                     ; preds = %.preheader.4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %75 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %7)
  %76 = invoke { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %.thread.loopexit unwind label %77

.thread.loopexit:                                 ; preds = %.preheader.5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  br label %.thread.preheader

77:                                               ; preds = %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  br label %255

.thread:                                          ; preds = %.thread.preheader, %252
  %.039162 = phi i64 [ %253, %252 ], [ 1, %.thread.preheader ]
  %.040161 = phi i32 [ %.2, %252 ], [ 0, %.thread.preheader ]
  %79 = icmp ult i64 %.039162, 10
  br i1 %79, label %80, label %98

80:                                               ; preds = %.thread
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %81 = trunc nuw i64 %.039162 to i32
  store i32 %81, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  %82 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %83 unwind label %90

83:                                               ; preds = %80
  %.not102 = icmp eq i64 %82, 0
  br i1 %.not102, label %84, label %.critedge

84:                                               ; preds = %83
  store i32 %81, ptr %9, align 4, !tbaa !5
  %85 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %86 unwind label %92

86:                                               ; preds = %84
  %.not103 = icmp eq i64 %85, 0
  br i1 %.not103, label %87, label %.critedge

87:                                               ; preds = %86
  store i32 %81, ptr %10, align 4, !tbaa !5
  %88 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %89 unwind label %94

89:                                               ; preds = %87
  %.not108 = icmp eq i64 %88, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  br i1 %.not108, label %.loopexit, label %252

.critedge:                                        ; preds = %83, %86
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  br label %252

90:                                               ; preds = %80
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %97

92:                                               ; preds = %84
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %96

94:                                               ; preds = %87
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  br label %96

96:                                               ; preds = %94, %92
  %.pn104 = phi { ptr, i32 } [ %95, %94 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  br label %97

97:                                               ; preds = %96, %90
  %.pn104.pn = phi { ptr, i32 } [ %.pn104, %96 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  br label %255

98:                                               ; preds = %.thread
  %99 = icmp ult i64 %.039162, 100
  br i1 %99, label %100, label %187

100:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  %.lhs.trunc = trunc nuw i64 %.039162 to i8
  %101 = udiv i8 %.lhs.trunc, 10
  %102 = urem i8 %.lhs.trunc, 10
  %103 = zext nneg i8 %101 to i32
  store i32 %103, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #5
  %104 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %105 unwind label %152

105:                                              ; preds = %100
  %.not80 = icmp eq i64 %104, 0
  br i1 %.not80, label %111, label %106

106:                                              ; preds = %105
  %107 = urem i8 %.lhs.trunc, 10
  %108 = zext nneg i8 %107 to i32
  store i32 %108, ptr %12, align 4, !tbaa !5
  %109 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %110 unwind label %154

110:                                              ; preds = %106
  %.not81 = icmp eq i64 %109, 0
  br i1 %.not81, label %111, label %.thread111

111:                                              ; preds = %110, %105
  store i32 %103, ptr %13, align 4, !tbaa !5
  %112 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %113 unwind label %156

113:                                              ; preds = %111
  %.not82 = icmp eq i64 %112, 0
  br i1 %.not82, label %119, label %114

114:                                              ; preds = %113
  %115 = urem i8 %.lhs.trunc, 10
  %116 = zext nneg i8 %115 to i32
  store i32 %116, ptr %14, align 4, !tbaa !5
  %117 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %118 unwind label %158

118:                                              ; preds = %114
  %.not83 = icmp eq i64 %117, 0
  br i1 %.not83, label %119, label %.thread111

119:                                              ; preds = %118, %113
  store i32 %103, ptr %15, align 4, !tbaa !5
  %120 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %121 unwind label %160

121:                                              ; preds = %119
  %.not84 = icmp eq i64 %120, 0
  br i1 %.not84, label %127, label %122

122:                                              ; preds = %121
  %123 = urem i8 %.lhs.trunc, 10
  %124 = zext nneg i8 %123 to i32
  store i32 %124, ptr %16, align 4, !tbaa !5
  %125 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %126 unwind label %162

126:                                              ; preds = %122
  %.not85 = icmp eq i64 %125, 0
  br i1 %.not85, label %127, label %.thread111

127:                                              ; preds = %126, %121
  store i32 %103, ptr %17, align 4, !tbaa !5
  %128 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %129 unwind label %164

129:                                              ; preds = %127
  %.not86 = icmp eq i64 %128, 0
  br i1 %.not86, label %135, label %130

130:                                              ; preds = %129
  %131 = urem i8 %.lhs.trunc, 10
  %132 = zext nneg i8 %131 to i32
  store i32 %132, ptr %18, align 4, !tbaa !5
  %133 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %134 unwind label %166

134:                                              ; preds = %130
  %.not87 = icmp eq i64 %133, 0
  br i1 %.not87, label %135, label %.thread111

135:                                              ; preds = %134, %129
  store i32 %103, ptr %19, align 4, !tbaa !5
  %136 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %137 unwind label %168

137:                                              ; preds = %135
  %.not88 = icmp eq i64 %136, 0
  br i1 %.not88, label %143, label %138

138:                                              ; preds = %137
  %139 = urem i8 %.lhs.trunc, 10
  %140 = zext nneg i8 %139 to i32
  store i32 %140, ptr %20, align 4, !tbaa !5
  %141 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %142 unwind label %170

142:                                              ; preds = %138
  %.not89 = icmp eq i64 %141, 0
  br i1 %.not89, label %143, label %.thread111

143:                                              ; preds = %142, %137
  store i32 %103, ptr %21, align 4, !tbaa !5
  %144 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %145 unwind label %172

145:                                              ; preds = %143
  %.not90 = icmp eq i64 %144, 0
  br i1 %.not90, label %.thread112, label %146

.thread112:                                       ; preds = %145
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  br label %.loopexit

146:                                              ; preds = %145
  %147 = zext nneg i8 %102 to i32
  store i32 %147, ptr %22, align 4, !tbaa !5
  %148 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %149 unwind label %174

.thread111:                                       ; preds = %142, %134, %126, %118, %110
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  br label %150

149:                                              ; preds = %146
  %.not137 = icmp eq i64 %148, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  br i1 %.not137, label %.loopexit, label %150

150:                                              ; preds = %.thread111, %149
  %151 = trunc nuw nsw i64 %.039162 to i32
  br label %252

152:                                              ; preds = %100
  %153 = landingpad { ptr, i32 }
          cleanup
  br label %186

154:                                              ; preds = %106
  %155 = landingpad { ptr, i32 }
          cleanup
  br label %185

156:                                              ; preds = %111
  %157 = landingpad { ptr, i32 }
          cleanup
  br label %184

158:                                              ; preds = %114
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %183

160:                                              ; preds = %119
  %161 = landingpad { ptr, i32 }
          cleanup
  br label %182

162:                                              ; preds = %122
  %163 = landingpad { ptr, i32 }
          cleanup
  br label %181

164:                                              ; preds = %127
  %165 = landingpad { ptr, i32 }
          cleanup
  br label %180

166:                                              ; preds = %130
  %167 = landingpad { ptr, i32 }
          cleanup
  br label %179

168:                                              ; preds = %135
  %169 = landingpad { ptr, i32 }
          cleanup
  br label %178

170:                                              ; preds = %138
  %171 = landingpad { ptr, i32 }
          cleanup
  br label %177

172:                                              ; preds = %143
  %173 = landingpad { ptr, i32 }
          cleanup
  br label %176

174:                                              ; preds = %146
  %175 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #5
  br label %176

176:                                              ; preds = %174, %172
  %.pn = phi { ptr, i32 } [ %175, %174 ], [ %173, %172 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #5
  br label %177

177:                                              ; preds = %176, %170
  %.pn.pn = phi { ptr, i32 } [ %.pn, %176 ], [ %171, %170 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #5
  br label %178

178:                                              ; preds = %177, %168
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %177 ], [ %169, %168 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #5
  br label %179

179:                                              ; preds = %178, %166
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %178 ], [ %167, %166 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  br label %180

180:                                              ; preds = %179, %164
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %179 ], [ %165, %164 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #5
  br label %181

181:                                              ; preds = %180, %162
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %180 ], [ %163, %162 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #5
  br label %182

182:                                              ; preds = %181, %160
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %181 ], [ %161, %160 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  br label %183

183:                                              ; preds = %182, %158
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %182 ], [ %159, %158 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  br label %184

184:                                              ; preds = %183, %156
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn, %183 ], [ %157, %156 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  br label %185

185:                                              ; preds = %184, %154
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn, %184 ], [ %155, %154 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  br label %186

186:                                              ; preds = %185, %152
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %185 ], [ %153, %152 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  br label %255

187:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #5
  %.lhs.trunc129 = trunc nuw i64 %.039162 to i16
  %188 = urem i16 %.lhs.trunc129, 10
  %189 = zext nneg i16 %188 to i32
  store i32 %189, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #5
  %190 = udiv i16 %.lhs.trunc129, 10
  %.lhs.trunc133 = trunc nuw nsw i16 %190 to i8
  %191 = urem i8 %.lhs.trunc133, 10
  %192 = zext nneg i8 %191 to i32
  store i32 %192, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #5
  %193 = udiv i16 %.lhs.trunc129, 100
  %194 = zext nneg i16 %193 to i32
  store i32 %194, ptr %25, align 4, !tbaa !5
  %195 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %196 unwind label %248

196:                                              ; preds = %187
  %.not = icmp eq i64 %195, 0
  br i1 %.not, label %203, label %197

197:                                              ; preds = %196
  %198 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %199 unwind label %248

199:                                              ; preds = %197
  %.not63 = icmp eq i64 %198, 0
  br i1 %.not63, label %203, label %200

200:                                              ; preds = %199
  %201 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %202 unwind label %248

202:                                              ; preds = %200
  %.not64 = icmp eq i64 %201, 0
  br i1 %.not64, label %203, label %250

203:                                              ; preds = %202, %199, %196
  %204 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %205 unwind label %248

205:                                              ; preds = %203
  %.not65 = icmp eq i64 %204, 0
  br i1 %.not65, label %212, label %206

206:                                              ; preds = %205
  %207 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %208 unwind label %248

208:                                              ; preds = %206
  %.not66 = icmp eq i64 %207, 0
  br i1 %.not66, label %212, label %209

209:                                              ; preds = %208
  %210 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %211 unwind label %248

211:                                              ; preds = %209
  %.not67 = icmp eq i64 %210, 0
  br i1 %.not67, label %212, label %250

212:                                              ; preds = %211, %208, %205
  %213 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %214 unwind label %248

214:                                              ; preds = %212
  %.not68 = icmp eq i64 %213, 0
  br i1 %.not68, label %221, label %215

215:                                              ; preds = %214
  %216 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %217 unwind label %248

217:                                              ; preds = %215
  %.not69 = icmp eq i64 %216, 0
  br i1 %.not69, label %221, label %218

218:                                              ; preds = %217
  %219 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %220 unwind label %248

220:                                              ; preds = %218
  %.not70 = icmp eq i64 %219, 0
  br i1 %.not70, label %221, label %250

221:                                              ; preds = %220, %217, %214
  %222 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %223 unwind label %248

223:                                              ; preds = %221
  %.not71 = icmp eq i64 %222, 0
  br i1 %.not71, label %230, label %224

224:                                              ; preds = %223
  %225 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %226 unwind label %248

226:                                              ; preds = %224
  %.not72 = icmp eq i64 %225, 0
  br i1 %.not72, label %230, label %227

227:                                              ; preds = %226
  %228 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %229 unwind label %248

229:                                              ; preds = %227
  %.not73 = icmp eq i64 %228, 0
  br i1 %.not73, label %230, label %250

230:                                              ; preds = %229, %226, %223
  %231 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %232 unwind label %248

232:                                              ; preds = %230
  %.not74 = icmp eq i64 %231, 0
  br i1 %.not74, label %239, label %233

233:                                              ; preds = %232
  %234 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %235 unwind label %248

235:                                              ; preds = %233
  %.not75 = icmp eq i64 %234, 0
  br i1 %.not75, label %239, label %236

236:                                              ; preds = %235
  %237 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %238 unwind label %248

238:                                              ; preds = %236
  %.not76 = icmp eq i64 %237, 0
  br i1 %.not76, label %239, label %250

239:                                              ; preds = %238, %235, %232
  %240 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %241 unwind label %248

241:                                              ; preds = %239
  %.not77 = icmp eq i64 %240, 0
  br i1 %.not77, label %.thread114, label %242

242:                                              ; preds = %241
  %243 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %244 unwind label %248

244:                                              ; preds = %242
  %.not78 = icmp eq i64 %243, 0
  br i1 %.not78, label %.thread114, label %245

245:                                              ; preds = %244
  %246 = invoke noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %247 unwind label %248

247:                                              ; preds = %245
  %.not79 = icmp eq i64 %246, 0
  br i1 %.not79, label %.thread114, label %250

248:                                              ; preds = %245, %242, %239, %236, %233, %230, %227, %224, %221, %218, %215, %212, %209, %206, %203, %200, %197, %187
  %249 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #5
  br label %255

.thread114:                                       ; preds = %247, %244, %241
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #5
  br label %.loopexit

250:                                              ; preds = %202, %211, %220, %229, %238, %247
  %251 = trunc nuw nsw i64 %.039162 to i32
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #5
  br label %252

252:                                              ; preds = %250, %89, %.critedge, %150
  %.2 = phi i32 [ %151, %150 ], [ %251, %250 ], [ %81, %.critedge ], [ %81, %89 ]
  %253 = add nuw nsw i64 %.039162, 1
  %exitcond.not = icmp eq i64 %253, 1000
  br i1 %exitcond.not, label %.loopexit, label %.thread, !llvm.loop !9

.loopexit:                                        ; preds = %149, %89, %252, %.thread114, %.thread112
  %.040157 = phi i32 [ %.040161, %.thread114 ], [ %.040161, %.thread112 ], [ %.2, %252 ], [ %.040161, %89 ], [ %.040161, %149 ]
  %254 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %.040157)
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #5
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #5
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(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 4, ptr nonnull %1) #5
  ret i32 0

255:                                              ; preds = %97, %186, %248, %77, %63, %49
  %.pn109 = phi { ptr, i32 } [ %50, %49 ], [ %64, %63 ], [ %78, %77 ], [ %.pn104.pn, %97 ], [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %186 ], [ %249, %248 ]
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #5
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #5
  call void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(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 4, ptr nonnull %1) #5
  resume { ptr, i32 } %.pn109
}

; 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 @_ZNSt3setIiSt4lessIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) 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: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setIiSt4lessIiESaIiEED2Ev(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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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