; LLVM IR from Optiroc/SuperFamiconv :: src/Map.ll (ZNK3sfc3Map15collect_entriesEbjj)

; 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::vector.34" = type { %"struct.std::_Vector_base.35" }
%"struct.std::_Vector_base.35" = type { %"struct.std::_Vector_base<std::vector<sfc::Mapentry>, std::allocator<std::vector<sfc::Mapentry>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<sfc::Mapentry>, std::allocator<std::vector<sfc::Mapentry>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<sfc::Mapentry>, std::allocator<std::vector<sfc::Mapentry>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<sfc::Mapentry>, std::allocator<std::vector<sfc::Mapentry>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<sfc::Mapentry, std::allocator<sfc::Mapentry>>::_Vector_impl" }
%"struct.std::_Vector_base<sfc::Mapentry, std::allocator<sfc::Mapentry>>::_Vector_impl" = type { %"struct.std::_Vector_base<sfc::Mapentry, std::allocator<sfc::Mapentry>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sfc::Mapentry, std::allocator<sfc::Mapentry>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.sfc::Mapentry" = type <{ i32, i32, i8, i8, [2 x i8] }>
%"struct.sfc::Map" = type { i32, i32, i32, i32, i32, %"class.std::vector" }

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3sfc8MapentryESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK3sfc3Map8entry_atEjj(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3sfc3Map15collect_entriesEbjj(ptr dead_on_unwind noalias writable sret(%"class.std::vector.34") align 8 %0, ptr noundef nonnull align 8 dereferenceable(48) %1, i1 noundef zeroext %2, i32 noundef %3, i32 noundef %4) #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::vector.34", align 8
  %12 = alloca ptr, align 8
  %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 %"class.std::vector", align 8
  %20 = alloca i32, align 4
  %21 = alloca %"struct.sfc::Mapentry", align 4
  %22 = alloca { i64, i32 }, align 8
  %23 = alloca i1, align 1
  %24 = alloca i32, align 4
  %25 = alloca %"class.std::vector", align 8
  %26 = alloca i32, align 4
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  %27 = zext i1 %2 to i8
  store i8 %27, ptr %8, align 1, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !11
  store i32 %4, ptr %10, align 4, !tbaa !11
  %28 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #5
  call void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  %29 = load i32, ptr %9, align 4, !tbaa !11
  %30 = getelementptr inbounds %"struct.sfc::Map", ptr %28, i32 0, i32 1
  %31 = load i32, ptr %30, align 4, !tbaa !13
  %32 = icmp ugt i32 %29, %31
  br i1 %32, label %36, label %33

33:                                               ; preds = %5
  %34 = load i32, ptr %9, align 4, !tbaa !11
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %39

36:                                               ; preds = %33, %5
  %37 = getelementptr inbounds %"struct.sfc::Map", ptr %28, i32 0, i32 1
  %38 = load i32, ptr %37, align 4, !tbaa !13
  store i32 %38, ptr %9, align 4, !tbaa !11
  br label %39

39:                                               ; preds = %36, %33
  %40 = load i32, ptr %10, align 4, !tbaa !11
  %41 = getelementptr inbounds %"struct.sfc::Map", ptr %28, i32 0, i32 2
  %42 = load i32, ptr %41, align 8, !tbaa !20
  %43 = icmp ugt i32 %40, %42
  br i1 %43, label %47, label %44

44:                                               ; preds = %39
  %45 = load i32, ptr %10, align 4, !tbaa !11
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %47, label %50

47:                                               ; preds = %44, %39
  %48 = getelementptr inbounds %"struct.sfc::Map", ptr %28, i32 0, i32 2
  %49 = load i32, ptr %48, align 8, !tbaa !20
  store i32 %49, ptr %10, align 4, !tbaa !11
  br label %50

50:                                               ; preds = %47, %44
  %51 = load i32, ptr %9, align 4, !tbaa !11
  %52 = getelementptr inbounds %"struct.sfc::Map", ptr %28, i32 0, i32 1
  %53 = load i32, ptr %52, align 4, !tbaa !13
  %54 = icmp eq i32 %51, %53
  br i1 %54, label %55, label %67

55:                                               ; preds = %50
  %56 = load i32, ptr %10, align 4, !tbaa !11
  %57 = getelementptr inbounds %"struct.sfc::Map", ptr %28, i32 0, i32 2
  %58 = load i32, ptr %57, align 8, !tbaa !20
  %59 = icmp eq i32 %56, %58
  br i1 %59, label %60, label %67

60:                                               ; preds = %55
  %61 = getelementptr inbounds %"struct.sfc::Map", ptr %28, i32 0, i32 5
  invoke void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %61)
          to label %62 unwind label %63

62:                                               ; preds = %60
  br label %167

63:                                               ; preds = %60
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %12, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %13, align 4
  br label %229

67:                                               ; preds = %55, %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %68 = getelementptr inbounds %"struct.sfc::Map", ptr %28, i32 0, i32 1
  %69 = load i32, ptr %68, align 4, !tbaa !13
  %70 = load i32, ptr %9, align 4, !tbaa !11
  %71 = invoke noundef i32 @_ZN3sfc8div_ceilEii(i32 noundef %69, i32 noundef %70)
          to label %72 unwind label %103

72:                                               ; preds = %67
  %73 = icmp eq i32 %71, 0
  br i1 %73, label %74, label %75

74:                                               ; preds = %72
  br label %81

75:                                               ; preds = %72
  %76 = getelementptr inbounds %"struct.sfc::Map", ptr %28, i32 0, i32 1
  %77 = load i32, ptr %76, align 4, !tbaa !13
  %78 = load i32, ptr %9, align 4, !tbaa !11
  %79 = invoke noundef i32 @_ZN3sfc8div_ceilEii(i32 noundef %77, i32 noundef %78)
          to label %80 unwind label %103

80:                                               ; preds = %75
  br label %81

81:                                               ; preds = %80, %74
  %82 = phi i32 [ 1, %74 ], [ %79, %80 ]
  store i32 %82, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %83 = getelementptr inbounds %"struct.sfc::Map", ptr %28, i32 0, i32 2
  %84 = load i32, ptr %83, align 8, !tbaa !20
  %85 = load i32, ptr %10, align 4, !tbaa !11
  %86 = invoke noundef i32 @_ZN3sfc8div_ceilEii(i32 noundef %84, i32 noundef %85)
          to label %87 unwind label %107

87:                                               ; preds = %81
  %88 = icmp eq i32 %86, 0
  br i1 %88, label %89, label %90

89:                                               ; preds = %87
  br label %96

90:                                               ; preds = %87
  %91 = getelementptr inbounds %"struct.sfc::Map", ptr %28, i32 0, i32 2
  %92 = load i32, ptr %91, align 8, !tbaa !20
  %93 = load i32, ptr %10, align 4, !tbaa !11
  %94 = invoke noundef i32 @_ZN3sfc8div_ceilEii(i32 noundef %92, i32 noundef %93)
          to label %95 unwind label %107

95:                                               ; preds = %90
  br label %96

96:                                               ; preds = %95, %89
  %97 = phi i32 [ 1, %89 ], [ %94, %95 ]
  store i32 %97, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %98

98:                                               ; preds = %161, %96
  %99 = load i32, ptr %16, align 4, !tbaa !11
  %100 = load i32, ptr %14, align 4, !tbaa !11
  %101 = icmp ult i32 %99, %100
  br i1 %101, label %111, label %102

102:                                              ; preds = %98
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %164

103:                                              ; preds = %75, %67
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %12, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %13, align 4
  br label %166

107:                                              ; preds = %90, %81
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %12, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %13, align 4
  br label %165

111:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !11
  br label %112

112:                                              ; preds = %152, %111
  %113 = load i32, ptr %18, align 4, !tbaa !11
  %114 = load i32, ptr %15, align 4, !tbaa !11
  %115 = icmp ult i32 %113, %114
  br i1 %115, label %117, label %116

116:                                              ; preds = %112
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %160

117:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #5
  call void @_ZNSt6vectorIN3sfc8MapentryESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !11
  br label %118

118:                                              ; preds = %143, %117
  %119 = load i32, ptr %20, align 4, !tbaa !11
  %120 = load i32, ptr %9, align 4, !tbaa !11
  %121 = load i32, ptr %10, align 4, !tbaa !11
  %122 = mul i32 %120, %121
  %123 = icmp ult i32 %119, %122
  br i1 %123, label %125, label %124

124:                                              ; preds = %118
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %150

125:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #5
  %126 = load i32, ptr %16, align 4, !tbaa !11
  %127 = load i32, ptr %9, align 4, !tbaa !11
  %128 = mul i32 %126, %127
  %129 = load i32, ptr %20, align 4, !tbaa !11
  %130 = load i32, ptr %9, align 4, !tbaa !11
  %131 = urem i32 %129, %130
  %132 = add i32 %128, %131
  %133 = load i32, ptr %18, align 4, !tbaa !11
  %134 = load i32, ptr %10, align 4, !tbaa !11
  %135 = mul i32 %133, %134
  %136 = load i32, ptr %20, align 4, !tbaa !11
  %137 = load i32, ptr %9, align 4, !tbaa !11
  %138 = udiv i32 %136, %137
  %139 = add i32 %135, %138
  %140 = invoke { i64, i32 } @_ZNK3sfc3Map8entry_atEjj(ptr noundef nonnull align 8 dereferenceable(48) %28, i32 noundef %132, i32 noundef %139)
          to label %141 unwind label %146

141:                                              ; preds = %125
  store { i64, i32 } %140, ptr %22, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 8 %22, i64 10, i1 false)
  invoke void @_ZNSt6vectorIN3sfc8MapentryESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 4 dereferenceable(12) %21)
          to label %142 unwind label %146

142:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #5
  br label %143

143:                                              ; preds = %142
  %144 = load i32, ptr %20, align 4, !tbaa !11
  %145 = add i32 %144, 1
  store i32 %145, ptr %20, align 4, !tbaa !11
  br label %118, !llvm.loop !21

146:                                              ; preds = %141, %125
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %12, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %159

150:                                              ; preds = %124
  invoke void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %151 unwind label %155

151:                                              ; preds = %150
  call void @_ZNSt6vectorIN3sfc8MapentryESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #5
  br label %152

152:                                              ; preds = %151
  %153 = load i32, ptr %18, align 4, !tbaa !11
  %154 = add i32 %153, 1
  store i32 %154, ptr %18, align 4, !tbaa !11
  br label %112, !llvm.loop !23

155:                                              ; preds = %150
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %12, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %13, align 4
  br label %159

159:                                              ; preds = %155, %146
  call void @_ZNSt6vectorIN3sfc8MapentryESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %165

160:                                              ; preds = %116
  br label %161

161:                                              ; preds = %160
  %162 = load i32, ptr %16, align 4, !tbaa !11
  %163 = add i32 %162, 1
  store i32 %163, ptr %16, align 4, !tbaa !11
  br label %98, !llvm.loop !24

164:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %167

165:                                              ; preds = %159, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %166

166:                                              ; preds = %165, %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %229

167:                                              ; preds = %164, %62
  %168 = load i8, ptr %8, align 1, !tbaa !9, !range !25, !noundef !26
  %169 = trunc i8 %168 to i1
  br i1 %169, label %170, label %227

170:                                              ; preds = %167
  store i1 false, ptr %23, align 1
  call void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 0, ptr %24, align 4, !tbaa !11
  br label %171

171:                                              ; preds = %219, %170
  %172 = load i32, ptr %24, align 4, !tbaa !11
  %173 = zext i32 %172 to i64
  %174 = call noundef i64 @_ZNKSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  %175 = icmp ult i64 %173, %174
  br i1 %175, label %177, label %176

176:                                              ; preds = %171
  store i32 11, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %223

177:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #5
  call void @llvm.memset.p0.i64(ptr align 8 %25, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN3sfc8MapentryESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  invoke void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %178 unwind label %188

178:                                              ; preds = %177
  call void @_ZNSt6vectorIN3sfc8MapentryESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  store i32 0, ptr %26, align 4, !tbaa !11
  br label %179

179:                                              ; preds = %211, %178
  %180 = load i32, ptr %26, align 4, !tbaa !11
  %181 = zext i32 %180 to i64
  %182 = load i32, ptr %24, align 4, !tbaa !11
  %183 = zext i32 %182 to i64
  %184 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %183) #5
  %185 = call noundef i64 @_ZNKSt6vectorIN3sfc8MapentryESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %184) #5
  %186 = icmp ult i64 %181, %185
  br i1 %186, label %192, label %187

187:                                              ; preds = %179
  store i32 14, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %218

188:                                              ; preds = %177
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %12, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %13, align 4
  call void @_ZNSt6vectorIN3sfc8MapentryESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #5
  br label %222

192:                                              ; preds = %179
  %193 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %194 = load i32, ptr %24, align 4, !tbaa !11
  %195 = zext i32 %194 to i64
  %196 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %195) #5
  %197 = load i32, ptr %26, align 4, !tbaa !11
  %198 = load i32, ptr %9, align 4, !tbaa !11
  %199 = mul i32 %197, %198
  %200 = load i32, ptr %26, align 4, !tbaa !11
  %201 = load i32, ptr %10, align 4, !tbaa !11
  %202 = udiv i32 %200, %201
  %203 = add i32 %199, %202
  %204 = load i32, ptr %9, align 4, !tbaa !11
  %205 = load i32, ptr %10, align 4, !tbaa !11
  %206 = mul i32 %204, %205
  %207 = urem i32 %203, %206
  %208 = zext i32 %207 to i64
  %209 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3sfc8MapentryESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %196, i64 noundef %208) #5
  invoke void @_ZNSt6vectorIN3sfc8MapentryESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %193, ptr noundef nonnull align 4 dereferenceable(12) %209)
          to label %210 unwind label %214

210:                                              ; preds = %192
  br label %211

211:                                              ; preds = %210
  %212 = load i32, ptr %26, align 4, !tbaa !11
  %213 = add i32 %212, 1
  store i32 %213, ptr %26, align 4, !tbaa !11
  br label %179, !llvm.loop !27

214:                                              ; preds = %192
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %12, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %222

218:                                              ; preds = %187
  br label %219

219:                                              ; preds = %218
  %220 = load i32, ptr %24, align 4, !tbaa !11
  %221 = add i32 %220, 1
  store i32 %221, ptr %24, align 4, !tbaa !11
  br label %171, !llvm.loop !28

222:                                              ; preds = %214, %188
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %229

223:                                              ; preds = %176
  store i1 true, ptr %23, align 1
  store i32 1, ptr %17, align 4
  %224 = load i1, ptr %23, align 1
  br i1 %224, label %226, label %225

225:                                              ; preds = %223
  call void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %226

226:                                              ; preds = %225, %223
  br label %228

227:                                              ; preds = %167
  call void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EEC2EOS5_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  store i32 1, ptr %17, align 4
  br label %228

228:                                              ; preds = %227, %226
  call void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  ret void

229:                                              ; preds = %222, %166, %63
  call void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  br label %230

230:                                              ; preds = %229
  %231 = load ptr, ptr %12, align 8
  %232 = load i32, ptr %13, align 4
  %233 = insertvalue { ptr, i32 } poison, ptr %231, 0
  %234 = insertvalue { ptr, i32 } %233, i32 %232, 1
  resume { ptr, i32 } %234
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3sfc8div_ceilEii(i32 noundef, i32 noundef) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3sfc8MapentryESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3sfc8MapentryESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) #3 align 2

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 4}
!14 = !{!"_ZTSN3sfc3MapE", !15, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !16, i64 24}
!15 = !{!"_ZTSN3sfc4ModeE", !7, i64 0}
!16 = !{!"_ZTSSt6vectorIN3sfc8MapentryESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIN3sfc8MapentryESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN3sfc8MapentryESaIS1_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN3sfc8MapentryESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!14, !12, i64 8}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = distinct !{!27, !22}
!28 = distinct !{!28, !22}


; 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::vector.34" = type { %"struct.std::_Vector_base.35" }
%"struct.std::_Vector_base.35" = type { %"struct.std::_Vector_base<std::vector<sfc::Mapentry>, std::allocator<std::vector<sfc::Mapentry>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<sfc::Mapentry>, std::allocator<std::vector<sfc::Mapentry>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<sfc::Mapentry>, std::allocator<std::vector<sfc::Mapentry>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<sfc::Mapentry>, std::allocator<std::vector<sfc::Mapentry>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<sfc::Mapentry, std::allocator<sfc::Mapentry>>::_Vector_impl" }
%"struct.std::_Vector_base<sfc::Mapentry, std::allocator<sfc::Mapentry>>::_Vector_impl" = type { %"struct.std::_Vector_base<sfc::Mapentry, std::allocator<sfc::Mapentry>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sfc::Mapentry, std::allocator<sfc::Mapentry>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.sfc::Mapentry" = type <{ i32, i32, i8, i8, [2 x i8] }>

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

declare i32 @__gxx_personality_v0(...)

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

; 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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3sfc8MapentryESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK3sfc3Map8entry_atEjj(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3sfc3Map15collect_entriesEbjj(ptr dead_on_unwind noalias writable sret(%"class.std::vector.34") align 8 %0, ptr noundef nonnull align 8 dereferenceable(48) %1, i1 noundef zeroext %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::vector.34", align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"struct.sfc::Mapentry", align 8
  %9 = alloca %"class.std::vector", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  call void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  %10 = getelementptr inbounds i8, ptr %1, i64 4
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = add i32 %3, -1
  %or.cond.not = icmp ult i32 %12, %11
  %spec.select = select i1 %or.cond.not, i32 %3, i32 %11
  %13 = getelementptr inbounds i8, ptr %1, i64 8
  %14 = load i32, ptr %13, align 8
  %15 = add i32 %4, -1
  %or.cond3.not = icmp ult i32 %15, %14
  %.049 = select i1 %or.cond3.not, i32 %4, i32 %14
  %16 = icmp eq i32 %spec.select, %11
  %17 = icmp eq i32 %.049, %14
  %or.cond = select i1 %16, i1 %17, i1 false
  br i1 %or.cond, label %18, label %22

18:                                               ; preds = %5
  %19 = getelementptr inbounds i8, ptr %1, i64 24
  invoke void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %.loopexit65 unwind label %20

20:                                               ; preds = %18
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %93

22:                                               ; preds = %5
  %23 = call noundef i32 @_ZN3sfc8div_ceilEii(i32 noundef %11, i32 noundef %spec.select)
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %28, label %25

25:                                               ; preds = %22
  %26 = load i32, ptr %10, align 4, !tbaa !5
  %27 = call noundef i32 @_ZN3sfc8div_ceilEii(i32 noundef %26, i32 noundef %spec.select)
  br label %28

28:                                               ; preds = %22, %25
  %29 = phi i32 [ %27, %25 ], [ 1, %22 ]
  %30 = load i32, ptr %13, align 8, !tbaa !16
  %31 = call noundef i32 @_ZN3sfc8div_ceilEii(i32 noundef %30, i32 noundef %.049)
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %.thread, label %33

33:                                               ; preds = %28
  %34 = load i32, ptr %13, align 8, !tbaa !16
  %35 = call noundef i32 @_ZN3sfc8div_ceilEii(i32 noundef %34, i32 noundef %.049)
  %.not = icmp eq i32 %29, 0
  %.not86 = icmp eq i32 %35, 0
  %36 = mul i32 %.049, %spec.select
  %.fr87 = freeze i32 %36
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  %or.cond104 = or i1 %.not, %.not86
  br i1 %or.cond104, label %.loopexit65, label %.preheader.lr.ph.split.us

.thread:                                          ; preds = %28
  %.not97 = icmp eq i32 %29, 0
  br i1 %.not97, label %.loopexit65, label %.preheader.lr.ph.thread

.preheader.lr.ph.thread:                          ; preds = %.thread
  %37 = mul i32 %.049, %spec.select
  %.fr8799 = freeze i32 %37
  %.sroa.2.0..sroa_idx100 = getelementptr inbounds i8, ptr %8, i64 8
  br label %.preheader.lr.ph.split.us

.preheader.lr.ph.split.us:                        ; preds = %33, %.preheader.lr.ph.thread
  %.sroa.2.0..sroa_idx102 = phi ptr [ %.sroa.2.0..sroa_idx100, %.preheader.lr.ph.thread ], [ %.sroa.2.0..sroa_idx, %33 ]
  %.fr87101 = phi i32 [ %.fr8799, %.preheader.lr.ph.thread ], [ %.fr87, %33 ]
  %38 = phi i32 [ 1, %.preheader.lr.ph.thread ], [ %35, %33 ]
  %.not88 = icmp eq i32 %.fr87101, 0
  br i1 %.not88, label %.preheader.us, label %.preheader.us.us

.preheader.us.us:                                 ; preds = %.preheader.lr.ph.split.us, %._crit_edge69.split.us.us.us
  %.05273.us.us = phi i32 [ %52, %._crit_edge69.split.us.us.us ], [ 0, %.preheader.lr.ph.split.us ]
  %39 = mul i32 %.05273.us.us, %spec.select
  br label %.lr.ph.us.us.us

.lr.ph.us.us.us:                                  ; preds = %41, %.preheader.us.us
  %.05167.us.us.us = phi i32 [ 0, %.preheader.us.us ], [ %42, %41 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  call void @_ZNSt6vectorIN3sfc8MapentryESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  %40 = mul i32 %.05167.us.us.us, %.049
  br label %43

41:                                               ; preds = %._crit_edge.us.us.us
  call void @_ZNSt6vectorIN3sfc8MapentryESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  %42 = add nuw i32 %.05167.us.us.us, 1
  %exitcond93.not = icmp eq i32 %42, %38
  br i1 %exitcond93.not, label %._crit_edge69.split.us.us.us, label %.lr.ph.us.us.us, !llvm.loop !17

43:                                               ; preds = %50, %.lr.ph.us.us.us
  %.05066.us.us.us = phi i32 [ 0, %.lr.ph.us.us.us ], [ %51, %50 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #4
  %44 = urem i32 %.05066.us.us.us, %spec.select
  %45 = add i32 %44, %39
  %46 = udiv i32 %.05066.us.us.us, %spec.select
  %47 = add i32 %46, %40
  %48 = invoke { i64, i32 } @_ZNK3sfc3Map8entry_atEjj(ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef %45, i32 noundef %47)
          to label %49 unwind label %.split71.us.split.us.split.us

49:                                               ; preds = %43
  %.fca.0.extract.us.us.us = extractvalue { i64, i32 } %48, 0
  %.fca.1.extract.us.us.us = extractvalue { i64, i32 } %48, 1
  store i64 %.fca.0.extract.us.us.us, ptr %8, align 8
  %.sroa.2.0.extract.trunc.us.us.us = trunc i32 %.fca.1.extract.us.us.us to i16
  store i16 %.sroa.2.0.extract.trunc.us.us.us, ptr %.sroa.2.0..sroa_idx102, align 4
  invoke void @_ZNSt6vectorIN3sfc8MapentryESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(12) %8)
          to label %50 unwind label %.split71.us.split.us.split.us

50:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #4
  %51 = add nuw i32 %.05066.us.us.us, 1
  %exitcond.not = icmp eq i32 %51, %.fr87101
  br i1 %exitcond.not, label %._crit_edge.us.us.us, label %43, !llvm.loop !19

._crit_edge.us.us.us:                             ; preds = %50
  invoke void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %41 unwind label %.split.us.split.us.split.us

._crit_edge69.split.us.us.us:                     ; preds = %41
  %52 = add nuw i32 %.05273.us.us, 1
  %exitcond94.not = icmp eq i32 %52, %29
  br i1 %exitcond94.not, label %.loopexit65, label %.preheader.us.us, !llvm.loop !20

.split71.us.split.us.split.us:                    ; preds = %49, %43
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #4
  br label %60

.split.us.split.us.split.us:                      ; preds = %._crit_edge.us.us.us
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %60

.preheader.us:                                    ; preds = %.preheader.lr.ph.split.us, %._crit_edge69.split.us75
  %.05273.us = phi i32 [ %58, %._crit_edge69.split.us75 ], [ 0, %.preheader.lr.ph.split.us ]
  br label %55

55:                                               ; preds = %.preheader.us, %56
  %.05167.us74 = phi i32 [ 0, %.preheader.us ], [ %57, %56 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  call void @_ZNSt6vectorIN3sfc8MapentryESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  invoke void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %56 unwind label %.split.split.us

56:                                               ; preds = %55
  call void @_ZNSt6vectorIN3sfc8MapentryESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  %57 = add nuw i32 %.05167.us74, 1
  %exitcond95.not = icmp eq i32 %57, %38
  br i1 %exitcond95.not, label %._crit_edge69.split.us75, label %55, !llvm.loop !17

._crit_edge69.split.us75:                         ; preds = %56
  %58 = add nuw i32 %.05273.us, 1
  %exitcond96.not = icmp eq i32 %58, %29
  br i1 %exitcond96.not, label %.loopexit65, label %.preheader.us, !llvm.loop !20

.split.split.us:                                  ; preds = %55
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %60

60:                                               ; preds = %.split.split.us, %.split.us.split.us.split.us, %.split71.us.split.us.split.us
  %.pn = phi { ptr, i32 } [ %53, %.split71.us.split.us.split.us ], [ %59, %.split.split.us ], [ %54, %.split.us.split.us.split.us ]
  call void @_ZNSt6vectorIN3sfc8MapentryESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  br label %93

.loopexit65:                                      ; preds = %._crit_edge69.split.us.us.us, %._crit_edge69.split.us75, %.thread, %33, %18
  br i1 %2, label %61, label %92

61:                                               ; preds = %.loopexit65
  call void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  %62 = call noundef i64 @_ZNKSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  %.not89 = icmp eq i64 %62, 0
  br i1 %.not89, label %.loopexit, label %.lr.ph85

.lr.ph85:                                         ; preds = %61
  %63 = mul i32 %.049, %spec.select
  br label %64

64:                                               ; preds = %.lr.ph85, %._crit_edge
  %65 = phi i64 [ 0, %.lr.ph85 ], [ %70, %._crit_edge ]
  %.04783 = phi i32 [ 0, %.lr.ph85 ], [ %69, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %9, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIN3sfc8MapentryESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  invoke void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %66 unwind label %73

66:                                               ; preds = %64
  call void @_ZNSt6vectorIN3sfc8MapentryESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #4
  %67 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %65) #4
  %68 = call noundef i64 @_ZNKSt6vectorIN3sfc8MapentryESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %67) #4
  %.not90 = icmp eq i64 %68, 0
  br i1 %.not90, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %83, %66
  %69 = add i32 %.04783, 1
  %70 = zext i32 %69 to i64
  %71 = call noundef i64 @_ZNKSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  %72 = icmp ugt i64 %71, %70
  br i1 %72, label %64, label %.loopexit, !llvm.loop !21

73:                                               ; preds = %64
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3sfc8MapentryESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #4
  br label %91

.lr.ph:                                           ; preds = %66, %83
  %.082 = phi i32 [ %84, %83 ], [ 0, %66 ]
  %75 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  %76 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %65) #4
  %77 = mul i32 %.082, %spec.select
  %78 = udiv i32 %.082, %.049
  %79 = add i32 %78, %77
  %80 = urem i32 %79, %63
  %81 = zext i32 %80 to i64
  %82 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3sfc8MapentryESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %81) #4
  invoke void @_ZNSt6vectorIN3sfc8MapentryESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %75, ptr noundef nonnull align 4 dereferenceable(12) %82)
          to label %83 unwind label %89

83:                                               ; preds = %.lr.ph
  %84 = add i32 %.082, 1
  %85 = zext i32 %84 to i64
  %86 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %65) #4
  %87 = call noundef i64 @_ZNKSt6vectorIN3sfc8MapentryESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %86) #4
  %88 = icmp ugt i64 %87, %85
  br i1 %88, label %.lr.ph, label %._crit_edge, !llvm.loop !22

89:                                               ; preds = %.lr.ph
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %91

91:                                               ; preds = %89, %73
  %.pn61 = phi { ptr, i32 } [ %90, %89 ], [ %74, %73 ]
  call void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  br label %93

92:                                               ; preds = %.loopexit65
  call void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EEC2EOS5_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  br label %.loopexit

.loopexit:                                        ; preds = %._crit_edge, %61, %92
  call void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  ret void

93:                                               ; preds = %91, %60, %20
  %.pn61.pn = phi { ptr, i32 } [ %.pn61, %91 ], [ %21, %20 ], [ %.pn, %60 ]
  call void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  resume { ptr, i32 } %.pn61.pn
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3sfc8div_ceilEii(i32 noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3sfc8MapentryESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IN3sfc8MapentryESaIS1_EESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3sfc8MapentryESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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, !10, i64 4}
!6 = !{!"_ZTSN3sfc3MapE", !7, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !11, i64 24}
!7 = !{!"_ZTSN3sfc4ModeE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTSSt6vectorIN3sfc8MapentryESaIS1_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIN3sfc8MapentryESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN3sfc8MapentryESaIS1_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN3sfc8MapentryESaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!6, !10, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}


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