; LLVM IR from tezc/sc :: map (map_test)

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

%struct.sc_map_64 = type { ptr, i32, i32, i32, i32, i8, i8, i8 }
%struct.sc_map_item_64 = type { i64, i64 }

@.str.14 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.164 = external hidden unnamed_addr constant [15 x i8], align 1
@__PRETTY_FUNCTION__.test_loop_generic = external hidden unnamed_addr constant [29 x i8], align 1
@.str.165 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.166 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [23 x i8], align 1

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

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

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

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

declare zeroext i1 @sc_map_init_64(ptr noundef, i32 noundef, i32 noundef) #3

declare void @sc_map_term_64(ptr noundef) #3

declare i64 @sc_map_put_64(ptr noundef, i64 noundef, i64 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @test_loop_generic() #4 {
  %1 = alloca %struct.sc_map_64, align 8
  %2 = alloca [100 x i32], align 16
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %1) #5
  %19 = call zeroext i1 @sc_map_init_64(ptr noundef %1, i32 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 400, ptr %2) #5
  call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 400, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %31, %0
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = icmp slt i32 %21, 100
  br i1 %22, label %24, label %23

23:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %34

24:                                               ; preds = %20
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = load i32, ptr %3, align 4, !tbaa !5
  %28 = mul nsw i32 %27, 918
  %29 = sext i32 %28 to i64
  %30 = call i64 @sc_map_put_64(ptr noundef %1, i64 noundef %26, i64 noundef %29)
  br label %31

31:                                               ; preds = %24
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %3, align 4, !tbaa !5
  br label %20, !llvm.loop !9

34:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store i64 -1, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %35

35:                                               ; preds = %97, %34
  %36 = load i64, ptr %7, align 8, !tbaa !11
  %37 = icmp ne i64 %36, 0
  br i1 %37, label %44, label %38

38:                                               ; preds = %35
  %39 = load i64, ptr %6, align 8, !tbaa !11
  %40 = getelementptr inbounds %struct.sc_map_64, ptr %1, i32 0, i32 1
  %41 = load i32, ptr %40, align 8, !tbaa !13
  %42 = zext i32 %41 to i64
  %43 = icmp slt i64 %39, %42
  br label %44

44:                                               ; preds = %38, %35
  %45 = phi i1 [ false, %35 ], [ %43, %38 ]
  br i1 %45, label %47, label %46

46:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %100

47:                                               ; preds = %44
  %48 = getelementptr inbounds %struct.sc_map_64, ptr %1, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !17
  %50 = load i64, ptr %6, align 8, !tbaa !11
  %51 = getelementptr inbounds %struct.sc_map_item_64, ptr %49, i64 %50
  %52 = getelementptr inbounds %struct.sc_map_item_64, ptr %51, i32 0, i32 1
  %53 = load i64, ptr %52, align 8, !tbaa !18
  store i64 %53, ptr %5, align 8, !tbaa !11
  %54 = getelementptr inbounds %struct.sc_map_64, ptr %1, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8, !tbaa !17
  %56 = load i64, ptr %6, align 8, !tbaa !11
  %57 = getelementptr inbounds %struct.sc_map_item_64, ptr %55, i64 %56
  %58 = getelementptr inbounds %struct.sc_map_item_64, ptr %57, i32 0, i32 0
  %59 = load i64, ptr %58, align 8, !tbaa !20
  store i64 %59, ptr %4, align 8, !tbaa !11
  store i64 1, ptr %7, align 8, !tbaa !11
  br label %60

60:                                               ; preds = %95, %47
  %61 = load i64, ptr %7, align 8, !tbaa !11
  %62 = icmp ne i64 %61, 0
  br i1 %62, label %63, label %74

63:                                               ; preds = %60
  %64 = load i64, ptr %6, align 8, !tbaa !11
  %65 = icmp eq i64 %64, -1
  br i1 %65, label %66, label %70

66:                                               ; preds = %63
  %67 = getelementptr inbounds %struct.sc_map_64, ptr %1, i32 0, i32 5
  %68 = load i8, ptr %67, align 8, !tbaa !21, !range !22, !noundef !23
  %69 = trunc i8 %68 to i1
  br i1 %69, label %73, label %70

70:                                               ; preds = %66, %63
  %71 = load i64, ptr %4, align 8, !tbaa !11
  %72 = icmp ne i64 %71, 0
  br i1 %72, label %73, label %74

73:                                               ; preds = %70, %66
  br label %75

74:                                               ; preds = %70, %60
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %75

75:                                               ; preds = %74, %73
  %76 = phi i64 [ 1, %73 ], [ 0, %74 ]
  %77 = icmp ne i64 %76, 0
  br i1 %77, label %78, label %96

78:                                               ; preds = %75
  %79 = load i64, ptr %4, align 8, !tbaa !11
  %80 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %84

83:                                               ; preds = %78
  br label %85

84:                                               ; preds = %78
  call void @__assert_fail(ptr noundef @.str.164, ptr noundef @.str.14, i32 noundef 2322, ptr noundef @__PRETTY_FUNCTION__.test_loop_generic) #6
  unreachable

85:                                               ; preds = %83
  %86 = load i64, ptr %5, align 8, !tbaa !11
  %87 = load i64, ptr %4, align 8, !tbaa !11
  %88 = mul i64 %87, 918
  %89 = icmp eq i64 %86, %88
  br i1 %89, label %90, label %91

90:                                               ; preds = %85
  br label %92

91:                                               ; preds = %85
  call void @__assert_fail(ptr noundef @.str.165, ptr noundef @.str.14, i32 noundef 2323, ptr noundef @__PRETTY_FUNCTION__.test_loop_generic) #6
  unreachable

92:                                               ; preds = %90
  %93 = load i64, ptr %4, align 8, !tbaa !11
  %94 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %93
  store i32 1, ptr %94, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %92
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %60, !llvm.loop !24

96:                                               ; preds = %75
  br label %97

97:                                               ; preds = %96
  %98 = load i64, ptr %6, align 8, !tbaa !11
  %99 = add nsw i64 %98, 1
  store i64 %99, ptr %6, align 8, !tbaa !11
  br label %35, !llvm.loop !25

100:                                              ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %114, %100
  %102 = load i32, ptr %8, align 4, !tbaa !5
  %103 = icmp slt i32 %102, 100
  br i1 %103, label %105, label %104

104:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %117

105:                                              ; preds = %101
  %106 = load i32, ptr %8, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = icmp eq i32 %109, 1
  br i1 %110, label %111, label %112

111:                                              ; preds = %105
  br label %113

112:                                              ; preds = %105
  call void @__assert_fail(ptr noundef @.str.166, ptr noundef @.str.14, i32 noundef 2328, ptr noundef @__PRETTY_FUNCTION__.test_loop_generic) #6
  unreachable

113:                                              ; preds = %111
  br label %114

114:                                              ; preds = %113
  %115 = load i32, ptr %8, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %8, align 4, !tbaa !5
  br label %101, !llvm.loop !26

117:                                              ; preds = %104
  %118 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %118, i8 0, i64 400, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store i64 -1, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %119

119:                                              ; preds = %187, %117
  %120 = load i64, ptr %11, align 8, !tbaa !11
  %121 = icmp ne i64 %120, 0
  br i1 %121, label %128, label %122

122:                                              ; preds = %119
  %123 = load i64, ptr %10, align 8, !tbaa !11
  %124 = getelementptr inbounds %struct.sc_map_64, ptr %1, i32 0, i32 1
  %125 = load i32, ptr %124, align 8, !tbaa !13
  %126 = zext i32 %125 to i64
  %127 = icmp slt i64 %123, %126
  br label %128

128:                                              ; preds = %122, %119
  %129 = phi i1 [ false, %119 ], [ %127, %122 ]
  br i1 %129, label %131, label %130

130:                                              ; preds = %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %190

131:                                              ; preds = %128
  %132 = getelementptr inbounds %struct.sc_map_64, ptr %1, i32 0, i32 0
  %133 = load ptr, ptr %132, align 8, !tbaa !17
  %134 = load i64, ptr %10, align 8, !tbaa !11
  %135 = getelementptr inbounds %struct.sc_map_item_64, ptr %133, i64 %134
  %136 = getelementptr inbounds %struct.sc_map_item_64, ptr %135, i32 0, i32 1
  %137 = load i64, ptr %136, align 8, !tbaa !18
  store i64 %137, ptr %5, align 8, !tbaa !11
  %138 = getelementptr inbounds %struct.sc_map_64, ptr %1, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8, !tbaa !17
  %140 = load i64, ptr %10, align 8, !tbaa !11
  %141 = getelementptr inbounds %struct.sc_map_item_64, ptr %139, i64 %140
  %142 = getelementptr inbounds %struct.sc_map_item_64, ptr %141, i32 0, i32 0
  %143 = load i64, ptr %142, align 8, !tbaa !20
  store i64 %143, ptr %4, align 8, !tbaa !11
  store i64 1, ptr %11, align 8, !tbaa !11
  br label %144

144:                                              ; preds = %185, %131
  %145 = load i64, ptr %11, align 8, !tbaa !11
  %146 = icmp ne i64 %145, 0
  br i1 %146, label %147, label %158

147:                                              ; preds = %144
  %148 = load i64, ptr %10, align 8, !tbaa !11
  %149 = icmp eq i64 %148, -1
  br i1 %149, label %150, label %154

150:                                              ; preds = %147
  %151 = getelementptr inbounds %struct.sc_map_64, ptr %1, i32 0, i32 5
  %152 = load i8, ptr %151, align 8, !tbaa !21, !range !22, !noundef !23
  %153 = trunc i8 %152 to i1
  br i1 %153, label %157, label %154

154:                                              ; preds = %150, %147
  %155 = load i64, ptr %4, align 8, !tbaa !11
  %156 = icmp ne i64 %155, 0
  br i1 %156, label %157, label %158

157:                                              ; preds = %154, %150
  br label %159

158:                                              ; preds = %154, %144
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %159

159:                                              ; preds = %158, %157
  %160 = phi i64 [ 1, %157 ], [ 0, %158 ]
  %161 = icmp ne i64 %160, 0
  br i1 %161, label %162, label %186

162:                                              ; preds = %159
  %163 = load i64, ptr %4, align 8, !tbaa !11
  %164 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %163
  %165 = load i32, ptr %164, align 4, !tbaa !5
  %166 = icmp eq i32 %165, 0
  br i1 %166, label %167, label %168

167:                                              ; preds = %162
  br label %169

168:                                              ; preds = %162
  call void @__assert_fail(ptr noundef @.str.164, ptr noundef @.str.14, i32 noundef 2335, ptr noundef @__PRETTY_FUNCTION__.test_loop_generic) #6
  unreachable

169:                                              ; preds = %167
  %170 = load i64, ptr %5, align 8, !tbaa !11
  %171 = load i64, ptr %4, align 8, !tbaa !11
  %172 = mul i64 %171, 918
  %173 = icmp eq i64 %170, %172
  br i1 %173, label %174, label %175

174:                                              ; preds = %169
  br label %176

175:                                              ; preds = %169
  call void @__assert_fail(ptr noundef @.str.165, ptr noundef @.str.14, i32 noundef 2336, ptr noundef @__PRETTY_FUNCTION__.test_loop_generic) #6
  unreachable

176:                                              ; preds = %174
  %177 = load i64, ptr %4, align 8, !tbaa !11
  %178 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %177
  store i32 1, ptr %178, align 4, !tbaa !5
  %179 = load i32, ptr %9, align 4, !tbaa !5
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %9, align 4, !tbaa !5
  %181 = load i32, ptr %9, align 4, !tbaa !5
  %182 = icmp eq i32 %181, 76
  br i1 %182, label %183, label %184

183:                                              ; preds = %176
  br label %186

184:                                              ; preds = %176
  br label %185

185:                                              ; preds = %184
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %144, !llvm.loop !27

186:                                              ; preds = %183, %159
  br label %187

187:                                              ; preds = %186
  %188 = load i64, ptr %10, align 8, !tbaa !11
  %189 = add nsw i64 %188, 1
  store i64 %189, ptr %10, align 8, !tbaa !11
  br label %119, !llvm.loop !28

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

191:                                              ; preds = %205, %190
  %192 = load i32, ptr %12, align 4, !tbaa !5
  %193 = icmp slt i32 %192, 100
  br i1 %193, label %195, label %194

194:                                              ; preds = %191
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %208

195:                                              ; preds = %191
  %196 = load i32, ptr %12, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %197
  %199 = load i32, ptr %198, align 4, !tbaa !5
  %200 = icmp eq i32 %199, 1
  br i1 %200, label %201, label %204

201:                                              ; preds = %195
  %202 = load i32, ptr %9, align 4, !tbaa !5
  %203 = add nsw i32 %202, -1
  store i32 %203, ptr %9, align 4, !tbaa !5
  br label %204

204:                                              ; preds = %201, %195
  br label %205

205:                                              ; preds = %204
  %206 = load i32, ptr %12, align 4, !tbaa !5
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %12, align 4, !tbaa !5
  br label %191, !llvm.loop !29

208:                                              ; preds = %194
  %209 = load i32, ptr %9, align 4, !tbaa !5
  %210 = icmp eq i32 %209, 0
  br i1 %210, label %211, label %212

211:                                              ; preds = %208
  br label %213

212:                                              ; preds = %208
  call void @__assert_fail(ptr noundef @.str.167, ptr noundef @.str.14, i32 noundef 2349, ptr noundef @__PRETTY_FUNCTION__.test_loop_generic) #6
  unreachable

213:                                              ; preds = %211
  store i32 0, ptr %9, align 4, !tbaa !5
  %214 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %214, i8 0, i64 400, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 -1, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %215

215:                                              ; preds = %270, %213
  %216 = load i64, ptr %14, align 8, !tbaa !11
  %217 = icmp ne i64 %216, 0
  br i1 %217, label %224, label %218

218:                                              ; preds = %215
  %219 = load i64, ptr %13, align 8, !tbaa !11
  %220 = getelementptr inbounds %struct.sc_map_64, ptr %1, i32 0, i32 1
  %221 = load i32, ptr %220, align 8, !tbaa !13
  %222 = zext i32 %221 to i64
  %223 = icmp slt i64 %219, %222
  br label %224

224:                                              ; preds = %218, %215
  %225 = phi i1 [ false, %215 ], [ %223, %218 ]
  br i1 %225, label %227, label %226

226:                                              ; preds = %224
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %273

227:                                              ; preds = %224
  %228 = getelementptr inbounds %struct.sc_map_64, ptr %1, i32 0, i32 0
  %229 = load ptr, ptr %228, align 8, !tbaa !17
  %230 = load i64, ptr %13, align 8, !tbaa !11
  %231 = getelementptr inbounds %struct.sc_map_item_64, ptr %229, i64 %230
  %232 = getelementptr inbounds %struct.sc_map_item_64, ptr %231, i32 0, i32 0
  %233 = load i64, ptr %232, align 8, !tbaa !20
  store i64 %233, ptr %4, align 8, !tbaa !11
  store i64 1, ptr %14, align 8, !tbaa !11
  br label %234

234:                                              ; preds = %268, %227
  %235 = load i64, ptr %14, align 8, !tbaa !11
  %236 = icmp ne i64 %235, 0
  br i1 %236, label %237, label %248

237:                                              ; preds = %234
  %238 = load i64, ptr %13, align 8, !tbaa !11
  %239 = icmp eq i64 %238, -1
  br i1 %239, label %240, label %244

240:                                              ; preds = %237
  %241 = getelementptr inbounds %struct.sc_map_64, ptr %1, i32 0, i32 5
  %242 = load i8, ptr %241, align 8, !tbaa !21, !range !22, !noundef !23
  %243 = trunc i8 %242 to i1
  br i1 %243, label %247, label %244

244:                                              ; preds = %240, %237
  %245 = load i64, ptr %4, align 8, !tbaa !11
  %246 = icmp ne i64 %245, 0
  br i1 %246, label %247, label %248

247:                                              ; preds = %244, %240
  br label %249

248:                                              ; preds = %244, %234
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %249

249:                                              ; preds = %248, %247
  %250 = phi i64 [ 1, %247 ], [ 0, %248 ]
  %251 = icmp ne i64 %250, 0
  br i1 %251, label %252, label %269

252:                                              ; preds = %249
  %253 = load i64, ptr %4, align 8, !tbaa !11
  %254 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %253
  %255 = load i32, ptr %254, align 4, !tbaa !5
  %256 = icmp eq i32 %255, 0
  br i1 %256, label %257, label %258

257:                                              ; preds = %252
  br label %259

258:                                              ; preds = %252
  call void @__assert_fail(ptr noundef @.str.164, ptr noundef @.str.14, i32 noundef 2357, ptr noundef @__PRETTY_FUNCTION__.test_loop_generic) #6
  unreachable

259:                                              ; preds = %257
  %260 = load i64, ptr %4, align 8, !tbaa !11
  %261 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %260
  store i32 1, ptr %261, align 4, !tbaa !5
  %262 = load i32, ptr %9, align 4, !tbaa !5
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %9, align 4, !tbaa !5
  %264 = load i32, ptr %9, align 4, !tbaa !5
  %265 = icmp eq i32 %264, 47
  br i1 %265, label %266, label %267

266:                                              ; preds = %259
  br label %269

267:                                              ; preds = %259
  br label %268

268:                                              ; preds = %267
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %234, !llvm.loop !30

269:                                              ; preds = %266, %249
  br label %270

270:                                              ; preds = %269
  %271 = load i64, ptr %13, align 8, !tbaa !11
  %272 = add nsw i64 %271, 1
  store i64 %272, ptr %13, align 8, !tbaa !11
  br label %215, !llvm.loop !31

273:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %274

274:                                              ; preds = %288, %273
  %275 = load i32, ptr %15, align 4, !tbaa !5
  %276 = icmp slt i32 %275, 100
  br i1 %276, label %278, label %277

277:                                              ; preds = %274
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %291

278:                                              ; preds = %274
  %279 = load i32, ptr %15, align 4, !tbaa !5
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %280
  %282 = load i32, ptr %281, align 4, !tbaa !5
  %283 = icmp eq i32 %282, 1
  br i1 %283, label %284, label %287

284:                                              ; preds = %278
  %285 = load i32, ptr %9, align 4, !tbaa !5
  %286 = add nsw i32 %285, -1
  store i32 %286, ptr %9, align 4, !tbaa !5
  br label %287

287:                                              ; preds = %284, %278
  br label %288

288:                                              ; preds = %287
  %289 = load i32, ptr %15, align 4, !tbaa !5
  %290 = add nsw i32 %289, 1
  store i32 %290, ptr %15, align 4, !tbaa !5
  br label %274, !llvm.loop !32

291:                                              ; preds = %277
  %292 = load i32, ptr %9, align 4, !tbaa !5
  %293 = icmp eq i32 %292, 0
  br i1 %293, label %294, label %295

294:                                              ; preds = %291
  br label %296

295:                                              ; preds = %291
  call void @__assert_fail(ptr noundef @.str.167, ptr noundef @.str.14, i32 noundef 2370, ptr noundef @__PRETTY_FUNCTION__.test_loop_generic) #6
  unreachable

296:                                              ; preds = %294
  store i32 0, ptr %9, align 4, !tbaa !5
  %297 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %297, i8 0, i64 400, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store i64 -1, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %298

298:                                              ; preds = %360, %296
  %299 = load i64, ptr %17, align 8, !tbaa !11
  %300 = icmp ne i64 %299, 0
  br i1 %300, label %307, label %301

301:                                              ; preds = %298
  %302 = load i64, ptr %16, align 8, !tbaa !11
  %303 = getelementptr inbounds %struct.sc_map_64, ptr %1, i32 0, i32 1
  %304 = load i32, ptr %303, align 8, !tbaa !13
  %305 = zext i32 %304 to i64
  %306 = icmp slt i64 %302, %305
  br label %307

307:                                              ; preds = %301, %298
  %308 = phi i1 [ false, %298 ], [ %306, %301 ]
  br i1 %308, label %310, label %309

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

310:                                              ; preds = %307
  %311 = getelementptr inbounds %struct.sc_map_64, ptr %1, i32 0, i32 0
  %312 = load ptr, ptr %311, align 8, !tbaa !17
  %313 = load i64, ptr %16, align 8, !tbaa !11
  %314 = getelementptr inbounds %struct.sc_map_item_64, ptr %312, i64 %313
  %315 = getelementptr inbounds %struct.sc_map_item_64, ptr %314, i32 0, i32 1
  %316 = load i64, ptr %315, align 8, !tbaa !18
  store i64 %316, ptr %5, align 8, !tbaa !11
  store i64 1, ptr %17, align 8, !tbaa !11
  br label %317

317:                                              ; preds = %358, %310
  %318 = load i64, ptr %17, align 8, !tbaa !11
  %319 = icmp ne i64 %318, 0
  br i1 %319, label %320, label %336

320:                                              ; preds = %317
  %321 = load i64, ptr %16, align 8, !tbaa !11
  %322 = icmp eq i64 %321, -1
  br i1 %322, label %323, label %327

323:                                              ; preds = %320
  %324 = getelementptr inbounds %struct.sc_map_64, ptr %1, i32 0, i32 5
  %325 = load i8, ptr %324, align 8, !tbaa !21, !range !22, !noundef !23
  %326 = trunc i8 %325 to i1
  br i1 %326, label %335, label %327

327:                                              ; preds = %323, %320
  %328 = getelementptr inbounds %struct.sc_map_64, ptr %1, i32 0, i32 0
  %329 = load ptr, ptr %328, align 8, !tbaa !17
  %330 = load i64, ptr %16, align 8, !tbaa !11
  %331 = getelementptr inbounds %struct.sc_map_item_64, ptr %329, i64 %330
  %332 = getelementptr inbounds %struct.sc_map_item_64, ptr %331, i32 0, i32 0
  %333 = load i64, ptr %332, align 8, !tbaa !20
  %334 = icmp ne i64 %333, 0
  br i1 %334, label %335, label %336

335:                                              ; preds = %327, %323
  br label %337

336:                                              ; preds = %327, %317
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %337

337:                                              ; preds = %336, %335
  %338 = phi i64 [ 1, %335 ], [ 0, %336 ]
  %339 = icmp ne i64 %338, 0
  br i1 %339, label %340, label %359

340:                                              ; preds = %337
  %341 = load i64, ptr %5, align 8, !tbaa !11
  %342 = udiv i64 %341, 918
  %343 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %342
  %344 = load i32, ptr %343, align 4, !tbaa !5
  %345 = icmp eq i32 %344, 0
  br i1 %345, label %346, label %347

346:                                              ; preds = %340
  br label %348

347:                                              ; preds = %340
  call void @__assert_fail(ptr noundef @.str.168, ptr noundef @.str.14, i32 noundef 2378, ptr noundef @__PRETTY_FUNCTION__.test_loop_generic) #6
  unreachable

348:                                              ; preds = %346
  %349 = load i64, ptr %5, align 8, !tbaa !11
  %350 = udiv i64 %349, 918
  %351 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %350
  store i32 1, ptr %351, align 4, !tbaa !5
  %352 = load i32, ptr %9, align 4, !tbaa !5
  %353 = add nsw i32 %352, 1
  store i32 %353, ptr %9, align 4, !tbaa !5
  %354 = load i32, ptr %9, align 4, !tbaa !5
  %355 = icmp eq i32 %354, 39
  br i1 %355, label %356, label %357

356:                                              ; preds = %348
  br label %359

357:                                              ; preds = %348
  br label %358

358:                                              ; preds = %357
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %317, !llvm.loop !33

359:                                              ; preds = %356, %337
  br label %360

360:                                              ; preds = %359
  %361 = load i64, ptr %16, align 8, !tbaa !11
  %362 = add nsw i64 %361, 1
  store i64 %362, ptr %16, align 8, !tbaa !11
  br label %298, !llvm.loop !34

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

364:                                              ; preds = %378, %363
  %365 = load i32, ptr %18, align 4, !tbaa !5
  %366 = icmp slt i32 %365, 100
  br i1 %366, label %368, label %367

367:                                              ; preds = %364
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %381

368:                                              ; preds = %364
  %369 = load i32, ptr %18, align 4, !tbaa !5
  %370 = sext i32 %369 to i64
  %371 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %370
  %372 = load i32, ptr %371, align 4, !tbaa !5
  %373 = icmp eq i32 %372, 1
  br i1 %373, label %374, label %377

374:                                              ; preds = %368
  %375 = load i32, ptr %9, align 4, !tbaa !5
  %376 = add nsw i32 %375, -1
  store i32 %376, ptr %9, align 4, !tbaa !5
  br label %377

377:                                              ; preds = %374, %368
  br label %378

378:                                              ; preds = %377
  %379 = load i32, ptr %18, align 4, !tbaa !5
  %380 = add nsw i32 %379, 1
  store i32 %380, ptr %18, align 4, !tbaa !5
  br label %364, !llvm.loop !35

381:                                              ; preds = %367
  %382 = load i32, ptr %9, align 4, !tbaa !5
  %383 = icmp eq i32 %382, 0
  br i1 %383, label %384, label %385

384:                                              ; preds = %381
  br label %386

385:                                              ; preds = %381
  call void @__assert_fail(ptr noundef @.str.167, ptr noundef @.str.14, i32 noundef 2391, ptr noundef @__PRETTY_FUNCTION__.test_loop_generic) #6
  unreachable

386:                                              ; preds = %384
  call void @sc_map_term_64(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %1) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nounwind }
attributes #6 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"sc_map_64", !15, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !16, i64 24, !16, i64 25, !16, i64 26}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!14, !15, i64 0}
!18 = !{!19, !12, i64 8}
!19 = !{!"sc_map_item_64", !12, i64 0, !12, i64 8}
!20 = !{!19, !12, i64 0}
!21 = !{!14, !16, i64 24}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !10}
!31 = distinct !{!31, !10}
!32 = distinct !{!32, !10}
!33 = distinct !{!33, !10}
!34 = distinct !{!34, !10}
!35 = distinct !{!35, !10}


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

%struct.sc_map_64 = type { ptr, i32, i32, i32, i32, i8, i8, i8 }
%struct.sc_map_item_64 = type { i64, i64 }

@.str.14 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.164 = external hidden unnamed_addr constant [15 x i8], align 1
@__PRETTY_FUNCTION__.test_loop_generic = external hidden unnamed_addr constant [29 x i8], align 1
@.str.165 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.166 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [23 x i8], align 1

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

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

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

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

declare zeroext i1 @sc_map_init_64(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @sc_map_term_64(ptr noundef) local_unnamed_addr #3

declare i64 @sc_map_put_64(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @test_loop_generic() local_unnamed_addr #4 {
  %1 = alloca %struct.sc_map_64, align 8
  %2 = alloca [100 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #6
  %3 = call zeroext i1 @sc_map_init_64(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 0) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %2) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400) %2, i8 0, i64 400, i1 false)
  br label %25

4:                                                ; preds = %25
  %5 = getelementptr inbounds i8, ptr %1, i64 8
  %6 = load i32, ptr %5, align 8
  %7 = zext i32 %6 to i64
  %8 = load ptr, ptr %1, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %1, i64 24
  %10 = load i8, ptr %9, align 8, !range !12
  %.fr209 = freeze i8 %10
  %11 = getelementptr inbounds i8, ptr %8, i64 -16
  %12 = getelementptr inbounds i8, ptr %8, i64 -8
  %13 = load i64, ptr %12, align 8, !tbaa !13
  %.fr285 = freeze i64 %13
  %14 = load i64, ptr %11, align 8, !tbaa !16
  %.fr207.peel = freeze i64 %14
  %15 = trunc nuw i8 %.fr209 to i1
  %16 = icmp ne i64 %.fr207.peel, 0
  %or.cond.peel = or i1 %16, %15
  br i1 %or.cond.peel, label %.critedge, label %24

.critedge:                                        ; preds = %4
  %17 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %.fr207.peel
  %18 = load i32, ptr %17, align 4, !tbaa !17
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %20, label %.loopexit

20:                                               ; preds = %.critedge
  %21 = mul i64 %.fr207.peel, 918
  %22 = icmp eq i64 %.fr285, %21
  br i1 %22, label %23, label %.loopexit236

23:                                               ; preds = %20
  store i32 1, ptr %17, align 4, !tbaa !17
  br label %24

24:                                               ; preds = %4, %23
  %exitcond234.peel.not = icmp eq i32 %6, 0
  br i1 %exitcond234.peel.not, label %.preheader139.preheader, label %.critedge.peel.next

25:                                               ; preds = %0, %25
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %25 ]
  %26 = mul nuw nsw i64 %indvars.iv, 918
  %27 = call i64 @sc_map_put_64(ptr noundef nonnull %1, i64 noundef %indvars.iv, i64 noundef %26) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 100
  br i1 %exitcond.not, label %4, label %25, !llvm.loop !18

.critedge.peel.next:                              ; preds = %24, %40
  %.099148 = phi i64 [ %41, %40 ], [ 0, %24 ]
  %28 = getelementptr inbounds %struct.sc_map_item_64, ptr %8, i64 %.099148
  %29 = getelementptr inbounds i8, ptr %28, i64 8
  %30 = load i64, ptr %29, align 8, !tbaa !13
  %31 = load i64, ptr %28, align 8, !tbaa !16
  %.old1.not = icmp eq i64 %31, 0
  br i1 %.old1.not, label %40, label %32

32:                                               ; preds = %.critedge.peel.next
  %33 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %31
  %34 = load i32, ptr %33, align 4, !tbaa !17
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %.loopexit

.loopexit:                                        ; preds = %32, %.critedge
  call void @__assert_fail(ptr noundef nonnull @.str.164, ptr noundef nonnull @.str.14, i32 noundef 2322, ptr noundef nonnull @__PRETTY_FUNCTION__.test_loop_generic) #7
  unreachable

36:                                               ; preds = %32
  %37 = mul i64 %31, 918
  %38 = icmp eq i64 %30, %37
  br i1 %38, label %39, label %.loopexit236

.loopexit236:                                     ; preds = %36, %20
  call void @__assert_fail(ptr noundef nonnull @.str.165, ptr noundef nonnull @.str.14, i32 noundef 2323, ptr noundef nonnull @__PRETTY_FUNCTION__.test_loop_generic) #7
  unreachable

39:                                               ; preds = %36
  store i32 1, ptr %33, align 4, !tbaa !17
  br label %40

40:                                               ; preds = %.critedge.peel.next, %39
  %41 = add nuw nsw i64 %.099148, 1
  %exitcond234.not = icmp eq i64 %41, %7
  br i1 %exitcond234.not, label %.preheader139.preheader, label %.critedge.peel.next, !llvm.loop !20

.preheader139.preheader:                          ; preds = %40, %24
  br label %.preheader139

.preheader139.1:                                  ; preds = %.preheader139
  %indvars.iv.next238 = add nuw nsw i64 %indvars.iv237, 1
  %42 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %indvars.iv.next238
  %43 = load i32, ptr %42, align 4, !tbaa !17
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %.preheader139.2, label %65

.preheader139.2:                                  ; preds = %.preheader139.1
  %indvars.iv.next238.1 = add nuw nsw i64 %indvars.iv237, 2
  %45 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %indvars.iv.next238.1
  %46 = load i32, ptr %45, align 4, !tbaa !17
  %47 = icmp eq i32 %46, 1
  br i1 %47, label %.preheader139.3, label %65

.preheader139.3:                                  ; preds = %.preheader139.2
  %indvars.iv.next238.2 = add nuw nsw i64 %indvars.iv237, 3
  %48 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %indvars.iv.next238.2
  %49 = load i32, ptr %48, align 4, !tbaa !17
  %50 = icmp eq i32 %49, 1
  br i1 %50, label %.preheader139.4, label %65

.preheader139.4:                                  ; preds = %.preheader139.3
  %indvars.iv.next238.3 = add nuw nsw i64 %indvars.iv237, 4
  %51 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %indvars.iv.next238.3
  %52 = load i32, ptr %51, align 4, !tbaa !17
  %53 = icmp eq i32 %52, 1
  br i1 %53, label %54, label %65

54:                                               ; preds = %.preheader139.4
  %indvars.iv.next238.4 = add nuw nsw i64 %indvars.iv237, 5
  %exitcond240.not.4 = icmp eq i64 %indvars.iv.next238.4, 100
  br i1 %exitcond240.not.4, label %.peel.begin, label %.preheader139, !llvm.loop !22

.peel.begin:                                      ; preds = %54
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400) %2, i8 0, i64 400, i1 false)
  %55 = trunc i8 %.fr209 to i1
  %56 = icmp ne i64 %.fr207.peel, 0
  %or.cond4.peel = or i1 %56, %55
  %57 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %.fr207.peel
  %58 = mul i64 %.fr207.peel, 918
  %59 = icmp eq i64 %.fr285, %58
  br i1 %59, label %.split.us.split.us.peel, label %.split.peel

.split.peel:                                      ; preds = %.peel.begin
  br i1 %or.cond4.peel, label %.loopexit245, label %.split151.us.peel

.split.us.split.us.peel:                          ; preds = %.peel.begin
  br i1 %or.cond4.peel, label %.split.us.split.us.split.us.preheader.peel, label %.split151.us.peel

.split.us.split.us.split.us.preheader.peel:       ; preds = %.split.us.split.us.peel
  %60 = load i32, ptr %57, align 4, !tbaa !17
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %.split151.us.loopexit.peel, label %.split154.us

.split151.us.loopexit.peel:                       ; preds = %.split.us.split.us.split.us.preheader.peel
  store i32 1, ptr %57, align 4, !tbaa !17
  br label %.split151.us.peel

.split151.us.peel:                                ; preds = %.split151.us.loopexit.peel, %.split.us.split.us.peel, %.split.peel
  %.us-phi152.peel = phi i32 [ 0, %.split.us.split.us.peel ], [ 0, %.split.peel ], [ 1, %.split151.us.loopexit.peel ]
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %.preheader138, label %.peel.next

.preheader139:                                    ; preds = %54, %.preheader139.preheader
  %indvars.iv237 = phi i64 [ 0, %.preheader139.preheader ], [ %indvars.iv.next238.4, %54 ]
  %62 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %indvars.iv237
  %63 = load i32, ptr %62, align 4, !tbaa !17
  %64 = icmp eq i32 %63, 1
  br i1 %64, label %.preheader139.1, label %65

65:                                               ; preds = %.preheader139.4, %.preheader139.3, %.preheader139.2, %.preheader139.1, %.preheader139
  call void @__assert_fail(ptr noundef nonnull @.str.166, ptr noundef nonnull @.str.14, i32 noundef 2328, ptr noundef nonnull @__PRETTY_FUNCTION__.test_loop_generic) #7
  unreachable

.peel.next:                                       ; preds = %.split151.us.peel, %.split151.us
  %.091169 = phi i64 [ %80, %.split151.us ], [ 0, %.split151.us.peel ]
  %.092168 = phi i32 [ %.us-phi152, %.split151.us ], [ %.us-phi152.peel, %.split151.us.peel ]
  %66 = getelementptr inbounds %struct.sc_map_item_64, ptr %8, i64 %.091169
  %67 = getelementptr inbounds i8, ptr %66, i64 8
  %68 = load i64, ptr %67, align 8, !tbaa !13
  %69 = load i64, ptr %66, align 8, !tbaa !16
  %.fr207 = freeze i64 %69
  %.old3.not = icmp eq i64 %.fr207, 0
  %70 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %.fr207
  %71 = mul i64 %.fr207, 918
  %.fr286 = freeze i64 %68
  %72 = icmp eq i64 %.fr286, %71
  br i1 %72, label %.split.us.split, label %.split

.split.us.split:                                  ; preds = %.peel.next
  br i1 %.old3.not, label %.split151.us, label %.split.us.split.split.preheader

.split.us.split.split.preheader:                  ; preds = %.split.us.split
  %73 = load i32, ptr %70, align 4, !tbaa !17
  %74 = icmp eq i32 %73, 0
  br i1 %74, label %75, label %.split154.us

75:                                               ; preds = %.split.us.split.split.preheader
  %76 = add i32 %.092168, 1
  store i32 1, ptr %70, align 4, !tbaa !17
  %.not300 = icmp eq i32 %76, 76
  br i1 %.not300, label %.preheader138, label %.split151.us, !llvm.loop !23

.split:                                           ; preds = %.peel.next
  br i1 %.old3.not, label %.split151.us, label %.loopexit245

.loopexit245:                                     ; preds = %.split, %.split.peel
  %.lcssa = phi ptr [ %57, %.split.peel ], [ %70, %.split ]
  %77 = load i32, ptr %.lcssa, align 4, !tbaa !17
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %.split154.us

.split154.us:                                     ; preds = %.split.us.split.split.preheader, %.split.us.split.us.split.us.preheader.peel, %.loopexit245
  call void @__assert_fail(ptr noundef nonnull @.str.164, ptr noundef nonnull @.str.14, i32 noundef 2335, ptr noundef nonnull @__PRETTY_FUNCTION__.test_loop_generic) #7
  unreachable

79:                                               ; preds = %.loopexit245
  call void @__assert_fail(ptr noundef nonnull @.str.165, ptr noundef nonnull @.str.14, i32 noundef 2336, ptr noundef nonnull @__PRETTY_FUNCTION__.test_loop_generic) #7
  unreachable

.split151.us:                                     ; preds = %75, %.split, %.split.us.split
  %.us-phi152 = phi i32 [ %.092168, %.split.us.split ], [ %.092168, %.split ], [ %76, %75 ]
  %80 = add nuw nsw i64 %.091169, 1
  %81 = icmp ult i64 %80, %7
  br i1 %81, label %.peel.next, label %.preheader138, !llvm.loop !24

.preheader138:                                    ; preds = %.split151.us, %75, %.split151.us.peel
  %.us-phi152.lcssa = phi i32 [ %.us-phi152.peel, %.split151.us.peel ], [ 76, %75 ], [ %.us-phi152, %.split151.us ]
  %82 = getelementptr inbounds i8, ptr %2, i64 16
  %wide.load306 = load <4 x i32>, ptr %82, align 16, !tbaa !17
  %83 = icmp eq <4 x i32> %wide.load306, <i32 1, i32 1, i32 1, i32 1>
  %84 = sext <4 x i1> %83 to <4 x i32>
  %85 = getelementptr inbounds i8, ptr %2, i64 48
  %wide.load306.1 = load <4 x i32>, ptr %85, align 16, !tbaa !17
  %86 = icmp eq <4 x i32> %wide.load306.1, <i32 1, i32 1, i32 1, i32 1>
  %87 = sext <4 x i1> %86 to <4 x i32>
  %88 = add nsw <4 x i32> %84, %87
  %89 = getelementptr inbounds i8, ptr %2, i64 80
  %wide.load306.2 = load <4 x i32>, ptr %89, align 16, !tbaa !17
  %90 = icmp eq <4 x i32> %wide.load306.2, <i32 1, i32 1, i32 1, i32 1>
  %91 = sext <4 x i1> %90 to <4 x i32>
  %92 = add nsw <4 x i32> %88, %91
  %93 = getelementptr inbounds i8, ptr %2, i64 112
  %wide.load306.3 = load <4 x i32>, ptr %93, align 16, !tbaa !17
  %94 = icmp eq <4 x i32> %wide.load306.3, <i32 1, i32 1, i32 1, i32 1>
  %95 = sext <4 x i1> %94 to <4 x i32>
  %96 = add nsw <4 x i32> %92, %95
  %97 = getelementptr inbounds i8, ptr %2, i64 144
  %wide.load306.4 = load <4 x i32>, ptr %97, align 16, !tbaa !17
  %98 = icmp eq <4 x i32> %wide.load306.4, <i32 1, i32 1, i32 1, i32 1>
  %99 = sext <4 x i1> %98 to <4 x i32>
  %100 = add nsw <4 x i32> %96, %99
  %101 = getelementptr inbounds i8, ptr %2, i64 176
  %wide.load306.5 = load <4 x i32>, ptr %101, align 16, !tbaa !17
  %102 = icmp eq <4 x i32> %wide.load306.5, <i32 1, i32 1, i32 1, i32 1>
  %103 = sext <4 x i1> %102 to <4 x i32>
  %104 = add nsw <4 x i32> %100, %103
  %105 = getelementptr inbounds i8, ptr %2, i64 208
  %wide.load306.6 = load <4 x i32>, ptr %105, align 16, !tbaa !17
  %106 = icmp eq <4 x i32> %wide.load306.6, <i32 1, i32 1, i32 1, i32 1>
  %107 = sext <4 x i1> %106 to <4 x i32>
  %108 = add nsw <4 x i32> %104, %107
  %109 = getelementptr inbounds i8, ptr %2, i64 240
  %wide.load306.7 = load <4 x i32>, ptr %109, align 16, !tbaa !17
  %110 = icmp eq <4 x i32> %wide.load306.7, <i32 1, i32 1, i32 1, i32 1>
  %111 = sext <4 x i1> %110 to <4 x i32>
  %112 = add <4 x i32> %108, %111
  %113 = getelementptr inbounds i8, ptr %2, i64 272
  %wide.load306.8 = load <4 x i32>, ptr %113, align 16, !tbaa !17
  %114 = icmp eq <4 x i32> %wide.load306.8, <i32 1, i32 1, i32 1, i32 1>
  %115 = sext <4 x i1> %114 to <4 x i32>
  %116 = add <4 x i32> %112, %115
  %117 = getelementptr inbounds i8, ptr %2, i64 304
  %wide.load306.9 = load <4 x i32>, ptr %117, align 16, !tbaa !17
  %118 = icmp eq <4 x i32> %wide.load306.9, <i32 1, i32 1, i32 1, i32 1>
  %119 = sext <4 x i1> %118 to <4 x i32>
  %120 = add <4 x i32> %116, %119
  %121 = getelementptr inbounds i8, ptr %2, i64 336
  %wide.load306.10 = load <4 x i32>, ptr %121, align 16, !tbaa !17
  %122 = icmp eq <4 x i32> %wide.load306.10, <i32 1, i32 1, i32 1, i32 1>
  %123 = sext <4 x i1> %122 to <4 x i32>
  %124 = add <4 x i32> %120, %123
  %125 = getelementptr inbounds i8, ptr %2, i64 368
  %wide.load306.11 = load <4 x i32>, ptr %125, align 16, !tbaa !17
  %126 = icmp eq <4 x i32> %wide.load306.11, <i32 1, i32 1, i32 1, i32 1>
  %127 = sext <4 x i1> %126 to <4 x i32>
  %128 = add <4 x i32> %124, %127
  %129 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %.us-phi152.lcssa, i64 0
  %wide.load = load <4 x i32>, ptr %2, align 16, !tbaa !17
  %130 = icmp eq <4 x i32> %wide.load, <i32 1, i32 1, i32 1, i32 1>
  %131 = sext <4 x i1> %130 to <4 x i32>
  %132 = add <4 x i32> %129, %131
  %133 = getelementptr inbounds i8, ptr %2, i64 32
  %wide.load.1 = load <4 x i32>, ptr %133, align 16, !tbaa !17
  %134 = icmp eq <4 x i32> %wide.load.1, <i32 1, i32 1, i32 1, i32 1>
  %135 = sext <4 x i1> %134 to <4 x i32>
  %136 = add <4 x i32> %132, %135
  %137 = getelementptr inbounds i8, ptr %2, i64 64
  %wide.load.2 = load <4 x i32>, ptr %137, align 16, !tbaa !17
  %138 = icmp eq <4 x i32> %wide.load.2, <i32 1, i32 1, i32 1, i32 1>
  %139 = sext <4 x i1> %138 to <4 x i32>
  %140 = add <4 x i32> %136, %139
  %141 = getelementptr inbounds i8, ptr %2, i64 96
  %wide.load.3 = load <4 x i32>, ptr %141, align 16, !tbaa !17
  %142 = icmp eq <4 x i32> %wide.load.3, <i32 1, i32 1, i32 1, i32 1>
  %143 = sext <4 x i1> %142 to <4 x i32>
  %144 = add <4 x i32> %140, %143
  %145 = getelementptr inbounds i8, ptr %2, i64 128
  %wide.load.4 = load <4 x i32>, ptr %145, align 16, !tbaa !17
  %146 = icmp eq <4 x i32> %wide.load.4, <i32 1, i32 1, i32 1, i32 1>
  %147 = sext <4 x i1> %146 to <4 x i32>
  %148 = add <4 x i32> %144, %147
  %149 = getelementptr inbounds i8, ptr %2, i64 160
  %wide.load.5 = load <4 x i32>, ptr %149, align 16, !tbaa !17
  %150 = icmp eq <4 x i32> %wide.load.5, <i32 1, i32 1, i32 1, i32 1>
  %151 = sext <4 x i1> %150 to <4 x i32>
  %152 = add <4 x i32> %148, %151
  %153 = getelementptr inbounds i8, ptr %2, i64 192
  %wide.load.6 = load <4 x i32>, ptr %153, align 16, !tbaa !17
  %154 = icmp eq <4 x i32> %wide.load.6, <i32 1, i32 1, i32 1, i32 1>
  %155 = sext <4 x i1> %154 to <4 x i32>
  %156 = add <4 x i32> %152, %155
  %157 = getelementptr inbounds i8, ptr %2, i64 224
  %wide.load.7 = load <4 x i32>, ptr %157, align 16, !tbaa !17
  %158 = icmp eq <4 x i32> %wide.load.7, <i32 1, i32 1, i32 1, i32 1>
  %159 = sext <4 x i1> %158 to <4 x i32>
  %160 = add <4 x i32> %156, %159
  %161 = getelementptr inbounds i8, ptr %2, i64 256
  %wide.load.8 = load <4 x i32>, ptr %161, align 16, !tbaa !17
  %162 = icmp eq <4 x i32> %wide.load.8, <i32 1, i32 1, i32 1, i32 1>
  %163 = sext <4 x i1> %162 to <4 x i32>
  %164 = add <4 x i32> %160, %163
  %165 = getelementptr inbounds i8, ptr %2, i64 288
  %wide.load.9 = load <4 x i32>, ptr %165, align 16, !tbaa !17
  %166 = icmp eq <4 x i32> %wide.load.9, <i32 1, i32 1, i32 1, i32 1>
  %167 = sext <4 x i1> %166 to <4 x i32>
  %168 = add <4 x i32> %164, %167
  %169 = getelementptr inbounds i8, ptr %2, i64 320
  %wide.load.10 = load <4 x i32>, ptr %169, align 16, !tbaa !17
  %170 = icmp eq <4 x i32> %wide.load.10, <i32 1, i32 1, i32 1, i32 1>
  %171 = sext <4 x i1> %170 to <4 x i32>
  %172 = add <4 x i32> %168, %171
  %173 = getelementptr inbounds i8, ptr %2, i64 352
  %wide.load.11 = load <4 x i32>, ptr %173, align 16, !tbaa !17
  %174 = icmp eq <4 x i32> %wide.load.11, <i32 1, i32 1, i32 1, i32 1>
  %175 = sext <4 x i1> %174 to <4 x i32>
  %176 = add <4 x i32> %172, %175
  %bin.rdx = add <4 x i32> %128, %176
  %177 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %178 = getelementptr inbounds i8, ptr %2, i64 384
  %179 = load i32, ptr %178, align 16, !tbaa !17
  %180 = icmp eq i32 %179, 1
  %181 = sext i1 %180 to i32
  %spec.select = add nsw i32 %177, %181
  %182 = getelementptr inbounds i8, ptr %2, i64 388
  %183 = load i32, ptr %182, align 4, !tbaa !17
  %184 = icmp eq i32 %183, 1
  %185 = sext i1 %184 to i32
  %spec.select.1 = add nsw i32 %spec.select, %185
  %186 = getelementptr inbounds i8, ptr %2, i64 392
  %187 = load i32, ptr %186, align 8, !tbaa !17
  %188 = icmp eq i32 %187, 1
  %189 = sext i1 %188 to i32
  %spec.select.2 = add nsw i32 %spec.select.1, %189
  %190 = getelementptr inbounds i8, ptr %2, i64 396
  %191 = load i32, ptr %190, align 4, !tbaa !17
  %192 = icmp eq i32 %191, 1
  %.neg = zext i1 %192 to i32
  %193 = icmp eq i32 %spec.select.2, %.neg
  br i1 %193, label %.split172.us.peel, label %194

194:                                              ; preds = %.preheader138
  call void @__assert_fail(ptr noundef nonnull @.str.167, ptr noundef nonnull @.str.14, i32 noundef 2349, ptr noundef nonnull @__PRETTY_FUNCTION__.test_loop_generic) #7
  unreachable

.split172.us.peel:                                ; preds = %.preheader138
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400) %2, i8 0, i64 400, i1 false)
  br i1 %or.cond4.peel, label %.split172.us.split.us.preheader.peel, label %.split174.us.peel

.split172.us.split.us.preheader.peel:             ; preds = %.split172.us.peel
  %195 = load i32, ptr %57, align 4, !tbaa !17
  %196 = icmp eq i32 %195, 0
  br i1 %196, label %.split174.us.loopexit.peel, label %.split178.us

.split174.us.loopexit.peel:                       ; preds = %.split172.us.split.us.preheader.peel
  store i32 1, ptr %57, align 4, !tbaa !17
  br label %.split174.us.peel

.split174.us.peel:                                ; preds = %.split174.us.loopexit.peel, %.split172.us.peel
  %.us-phi176.peel = phi i32 [ 0, %.split172.us.peel ], [ 1, %.split174.us.loopexit.peel ]
  br i1 %.not, label %.preheader137, label %.split172

.split172:                                        ; preds = %.split174.us.peel, %.split174.us
  %.086189 = phi i64 [ %204, %.split174.us ], [ 0, %.split174.us.peel ]
  %.5188 = phi i32 [ %.us-phi176, %.split174.us ], [ %.us-phi176.peel, %.split174.us.peel ]
  %197 = getelementptr inbounds %struct.sc_map_item_64, ptr %8, i64 %.086189
  %198 = load i64, ptr %197, align 8, !tbaa !16
  %.fr210 = freeze i64 %198
  %199 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %.fr210
  %.old6.not = icmp eq i64 %.fr210, 0
  br i1 %.old6.not, label %.split174.us, label %.split172.split.preheader

.split172.split.preheader:                        ; preds = %.split172
  %200 = load i32, ptr %199, align 4, !tbaa !17
  %201 = icmp eq i32 %200, 0
  br i1 %201, label %202, label %.split178.us

.split178.us:                                     ; preds = %.split172.split.preheader, %.split172.us.split.us.preheader.peel
  call void @__assert_fail(ptr noundef nonnull @.str.164, ptr noundef nonnull @.str.14, i32 noundef 2357, ptr noundef nonnull @__PRETTY_FUNCTION__.test_loop_generic) #7
  unreachable

202:                                              ; preds = %.split172.split.preheader
  %203 = add i32 %.5188, 1
  store i32 1, ptr %199, align 4, !tbaa !17
  %.not301 = icmp eq i32 %203, 47
  br i1 %.not301, label %.preheader137, label %.split174.us, !llvm.loop !25

.split174.us:                                     ; preds = %202, %.split172
  %.us-phi176 = phi i32 [ %.5188, %.split172 ], [ %203, %202 ]
  %204 = add nuw nsw i64 %.086189, 1
  %205 = icmp ult i64 %204, %7
  br i1 %205, label %.split172, label %.preheader137, !llvm.loop !26

.preheader137:                                    ; preds = %.split174.us, %202, %.split174.us.peel
  %.us-phi176.lcssa = phi i32 [ %.us-phi176.peel, %.split174.us.peel ], [ 47, %202 ], [ %.us-phi176, %.split174.us ]
  %206 = getelementptr inbounds i8, ptr %2, i64 16
  %wide.load316 = load <4 x i32>, ptr %206, align 16, !tbaa !17
  %207 = icmp eq <4 x i32> %wide.load316, <i32 1, i32 1, i32 1, i32 1>
  %208 = sext <4 x i1> %207 to <4 x i32>
  %209 = getelementptr inbounds i8, ptr %2, i64 48
  %wide.load316.1 = load <4 x i32>, ptr %209, align 16, !tbaa !17
  %210 = icmp eq <4 x i32> %wide.load316.1, <i32 1, i32 1, i32 1, i32 1>
  %211 = sext <4 x i1> %210 to <4 x i32>
  %212 = add nsw <4 x i32> %208, %211
  %213 = getelementptr inbounds i8, ptr %2, i64 80
  %wide.load316.2 = load <4 x i32>, ptr %213, align 16, !tbaa !17
  %214 = icmp eq <4 x i32> %wide.load316.2, <i32 1, i32 1, i32 1, i32 1>
  %215 = sext <4 x i1> %214 to <4 x i32>
  %216 = add nsw <4 x i32> %212, %215
  %217 = getelementptr inbounds i8, ptr %2, i64 112
  %wide.load316.3 = load <4 x i32>, ptr %217, align 16, !tbaa !17
  %218 = icmp eq <4 x i32> %wide.load316.3, <i32 1, i32 1, i32 1, i32 1>
  %219 = sext <4 x i1> %218 to <4 x i32>
  %220 = add nsw <4 x i32> %216, %219
  %221 = getelementptr inbounds i8, ptr %2, i64 144
  %wide.load316.4 = load <4 x i32>, ptr %221, align 16, !tbaa !17
  %222 = icmp eq <4 x i32> %wide.load316.4, <i32 1, i32 1, i32 1, i32 1>
  %223 = sext <4 x i1> %222 to <4 x i32>
  %224 = add nsw <4 x i32> %220, %223
  %225 = getelementptr inbounds i8, ptr %2, i64 176
  %wide.load316.5 = load <4 x i32>, ptr %225, align 16, !tbaa !17
  %226 = icmp eq <4 x i32> %wide.load316.5, <i32 1, i32 1, i32 1, i32 1>
  %227 = sext <4 x i1> %226 to <4 x i32>
  %228 = add nsw <4 x i32> %224, %227
  %229 = getelementptr inbounds i8, ptr %2, i64 208
  %wide.load316.6 = load <4 x i32>, ptr %229, align 16, !tbaa !17
  %230 = icmp eq <4 x i32> %wide.load316.6, <i32 1, i32 1, i32 1, i32 1>
  %231 = sext <4 x i1> %230 to <4 x i32>
  %232 = add nsw <4 x i32> %228, %231
  %233 = getelementptr inbounds i8, ptr %2, i64 240
  %wide.load316.7 = load <4 x i32>, ptr %233, align 16, !tbaa !17
  %234 = icmp eq <4 x i32> %wide.load316.7, <i32 1, i32 1, i32 1, i32 1>
  %235 = sext <4 x i1> %234 to <4 x i32>
  %236 = add <4 x i32> %232, %235
  %237 = getelementptr inbounds i8, ptr %2, i64 272
  %wide.load316.8 = load <4 x i32>, ptr %237, align 16, !tbaa !17
  %238 = icmp eq <4 x i32> %wide.load316.8, <i32 1, i32 1, i32 1, i32 1>
  %239 = sext <4 x i1> %238 to <4 x i32>
  %240 = add <4 x i32> %236, %239
  %241 = getelementptr inbounds i8, ptr %2, i64 304
  %wide.load316.9 = load <4 x i32>, ptr %241, align 16, !tbaa !17
  %242 = icmp eq <4 x i32> %wide.load316.9, <i32 1, i32 1, i32 1, i32 1>
  %243 = sext <4 x i1> %242 to <4 x i32>
  %244 = add <4 x i32> %240, %243
  %245 = getelementptr inbounds i8, ptr %2, i64 336
  %wide.load316.10 = load <4 x i32>, ptr %245, align 16, !tbaa !17
  %246 = icmp eq <4 x i32> %wide.load316.10, <i32 1, i32 1, i32 1, i32 1>
  %247 = sext <4 x i1> %246 to <4 x i32>
  %248 = add <4 x i32> %244, %247
  %249 = getelementptr inbounds i8, ptr %2, i64 368
  %wide.load316.11 = load <4 x i32>, ptr %249, align 16, !tbaa !17
  %250 = icmp eq <4 x i32> %wide.load316.11, <i32 1, i32 1, i32 1, i32 1>
  %251 = sext <4 x i1> %250 to <4 x i32>
  %252 = add <4 x i32> %248, %251
  %253 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %.us-phi176.lcssa, i64 0
  %wide.load315 = load <4 x i32>, ptr %2, align 16, !tbaa !17
  %254 = icmp eq <4 x i32> %wide.load315, <i32 1, i32 1, i32 1, i32 1>
  %255 = sext <4 x i1> %254 to <4 x i32>
  %256 = add <4 x i32> %253, %255
  %257 = getelementptr inbounds i8, ptr %2, i64 32
  %wide.load315.1 = load <4 x i32>, ptr %257, align 16, !tbaa !17
  %258 = icmp eq <4 x i32> %wide.load315.1, <i32 1, i32 1, i32 1, i32 1>
  %259 = sext <4 x i1> %258 to <4 x i32>
  %260 = add <4 x i32> %256, %259
  %261 = getelementptr inbounds i8, ptr %2, i64 64
  %wide.load315.2 = load <4 x i32>, ptr %261, align 16, !tbaa !17
  %262 = icmp eq <4 x i32> %wide.load315.2, <i32 1, i32 1, i32 1, i32 1>
  %263 = sext <4 x i1> %262 to <4 x i32>
  %264 = add <4 x i32> %260, %263
  %265 = getelementptr inbounds i8, ptr %2, i64 96
  %wide.load315.3 = load <4 x i32>, ptr %265, align 16, !tbaa !17
  %266 = icmp eq <4 x i32> %wide.load315.3, <i32 1, i32 1, i32 1, i32 1>
  %267 = sext <4 x i1> %266 to <4 x i32>
  %268 = add <4 x i32> %264, %267
  %269 = getelementptr inbounds i8, ptr %2, i64 128
  %wide.load315.4 = load <4 x i32>, ptr %269, align 16, !tbaa !17
  %270 = icmp eq <4 x i32> %wide.load315.4, <i32 1, i32 1, i32 1, i32 1>
  %271 = sext <4 x i1> %270 to <4 x i32>
  %272 = add <4 x i32> %268, %271
  %273 = getelementptr inbounds i8, ptr %2, i64 160
  %wide.load315.5 = load <4 x i32>, ptr %273, align 16, !tbaa !17
  %274 = icmp eq <4 x i32> %wide.load315.5, <i32 1, i32 1, i32 1, i32 1>
  %275 = sext <4 x i1> %274 to <4 x i32>
  %276 = add <4 x i32> %272, %275
  %277 = getelementptr inbounds i8, ptr %2, i64 192
  %wide.load315.6 = load <4 x i32>, ptr %277, align 16, !tbaa !17
  %278 = icmp eq <4 x i32> %wide.load315.6, <i32 1, i32 1, i32 1, i32 1>
  %279 = sext <4 x i1> %278 to <4 x i32>
  %280 = add <4 x i32> %276, %279
  %281 = getelementptr inbounds i8, ptr %2, i64 224
  %wide.load315.7 = load <4 x i32>, ptr %281, align 16, !tbaa !17
  %282 = icmp eq <4 x i32> %wide.load315.7, <i32 1, i32 1, i32 1, i32 1>
  %283 = sext <4 x i1> %282 to <4 x i32>
  %284 = add <4 x i32> %280, %283
  %285 = getelementptr inbounds i8, ptr %2, i64 256
  %wide.load315.8 = load <4 x i32>, ptr %285, align 16, !tbaa !17
  %286 = icmp eq <4 x i32> %wide.load315.8, <i32 1, i32 1, i32 1, i32 1>
  %287 = sext <4 x i1> %286 to <4 x i32>
  %288 = add <4 x i32> %284, %287
  %289 = getelementptr inbounds i8, ptr %2, i64 288
  %wide.load315.9 = load <4 x i32>, ptr %289, align 16, !tbaa !17
  %290 = icmp eq <4 x i32> %wide.load315.9, <i32 1, i32 1, i32 1, i32 1>
  %291 = sext <4 x i1> %290 to <4 x i32>
  %292 = add <4 x i32> %288, %291
  %293 = getelementptr inbounds i8, ptr %2, i64 320
  %wide.load315.10 = load <4 x i32>, ptr %293, align 16, !tbaa !17
  %294 = icmp eq <4 x i32> %wide.load315.10, <i32 1, i32 1, i32 1, i32 1>
  %295 = sext <4 x i1> %294 to <4 x i32>
  %296 = add <4 x i32> %292, %295
  %297 = getelementptr inbounds i8, ptr %2, i64 352
  %wide.load315.11 = load <4 x i32>, ptr %297, align 16, !tbaa !17
  %298 = icmp eq <4 x i32> %wide.load315.11, <i32 1, i32 1, i32 1, i32 1>
  %299 = sext <4 x i1> %298 to <4 x i32>
  %300 = add <4 x i32> %296, %299
  %bin.rdx318 = add <4 x i32> %252, %300
  %301 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx318)
  %302 = getelementptr inbounds i8, ptr %2, i64 384
  %303 = load i32, ptr %302, align 16, !tbaa !17
  %304 = icmp eq i32 %303, 1
  %305 = sext i1 %304 to i32
  %spec.select119 = add nsw i32 %301, %305
  %306 = getelementptr inbounds i8, ptr %2, i64 388
  %307 = load i32, ptr %306, align 4, !tbaa !17
  %308 = icmp eq i32 %307, 1
  %309 = sext i1 %308 to i32
  %spec.select119.1 = add nsw i32 %spec.select119, %309
  %310 = getelementptr inbounds i8, ptr %2, i64 392
  %311 = load i32, ptr %310, align 8, !tbaa !17
  %312 = icmp eq i32 %311, 1
  %313 = sext i1 %312 to i32
  %spec.select119.2 = add nsw i32 %spec.select119.1, %313
  %314 = getelementptr inbounds i8, ptr %2, i64 396
  %315 = load i32, ptr %314, align 4, !tbaa !17
  %316 = icmp eq i32 %315, 1
  %.neg345 = zext i1 %316 to i32
  %317 = icmp eq i32 %spec.select119.2, %.neg345
  br i1 %317, label %.split192.us.peel, label %318

318:                                              ; preds = %.preheader137
  call void @__assert_fail(ptr noundef nonnull @.str.167, ptr noundef nonnull @.str.14, i32 noundef 2370, ptr noundef nonnull @__PRETTY_FUNCTION__.test_loop_generic) #7
  unreachable

.split192.us.peel:                                ; preds = %.preheader137
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400) %2, i8 0, i64 400, i1 false)
  %319 = udiv i64 %.fr285, 918
  %320 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %319
  br i1 %55, label %.split192.us.split.us.preheader.peel, label %.split192.us.split.preheader.peel

.split192.us.split.preheader.peel:                ; preds = %.split192.us.peel
  %.not111.us.peel = icmp eq i64 %.fr207.peel, 0
  br i1 %.not111.us.peel, label %.split194.us.peel, label %321

321:                                              ; preds = %.split192.us.split.preheader.peel
  %322 = load i32, ptr %320, align 4, !tbaa !17
  %323 = icmp eq i32 %322, 0
  br i1 %323, label %.split194.us.peel.sink.split, label %.split198.us

.split192.us.split.us.preheader.peel:             ; preds = %.split192.us.peel
  %324 = load i32, ptr %320, align 4, !tbaa !17
  %325 = icmp eq i32 %324, 0
  br i1 %325, label %.split194.us.peel.sink.split, label %.split198.us

.split194.us.peel.sink.split:                     ; preds = %.split192.us.split.us.preheader.peel, %321
  store i32 1, ptr %320, align 4, !tbaa !17
  br label %.split194.us.peel

.split194.us.peel:                                ; preds = %.split194.us.peel.sink.split, %.split192.us.split.preheader.peel
  %.us-phi196.peel = phi i32 [ 0, %.split192.us.split.preheader.peel ], [ 1, %.split194.us.peel.sink.split ]
  br i1 %.not, label %.preheader, label %.split192.preheader

.split192.preheader:                              ; preds = %.split194.us.peel, %.split194.us
  %.081204 = phi i64 [ %338, %.split194.us ], [ 0, %.split194.us.peel ]
  %.10203 = phi i32 [ %.us-phi196.ph220, %.split194.us ], [ %.us-phi196.peel, %.split194.us.peel ]
  %326 = getelementptr inbounds %struct.sc_map_item_64, ptr %8, i64 %.081204, i32 1
  %327 = load i64, ptr %326, align 8, !tbaa !13
  %328 = udiv i64 %327, 918
  %329 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %328
  %330 = getelementptr inbounds %struct.sc_map_item_64, ptr %8, i64 %.081204
  %331 = add i32 %.10203, 1
  %332 = load i64, ptr %330, align 8, !tbaa !16
  %.not111 = icmp eq i64 %332, 0
  br i1 %.not111, label %.split194.us, label %333

333:                                              ; preds = %.split192.preheader
  %334 = load i32, ptr %329, align 4, !tbaa !17
  %335 = icmp eq i32 %334, 0
  br i1 %335, label %336, label %.split198.us

.split198.us:                                     ; preds = %333, %321, %.split192.us.split.us.preheader.peel
  call void @__assert_fail(ptr noundef nonnull @.str.168, ptr noundef nonnull @.str.14, i32 noundef 2378, ptr noundef nonnull @__PRETTY_FUNCTION__.test_loop_generic) #7
  unreachable

336:                                              ; preds = %333
  store i32 1, ptr %329, align 4, !tbaa !17
  %337 = icmp eq i32 %331, 39
  br i1 %337, label %.preheader, label %.split194.us, !llvm.loop !27

.split194.us:                                     ; preds = %336, %.split192.preheader
  %.us-phi196.ph220 = phi i32 [ %.10203, %.split192.preheader ], [ %331, %336 ]
  %338 = add nuw nsw i64 %.081204, 1
  %339 = icmp ult i64 %338, %7
  br i1 %339, label %.split192.preheader, label %.preheader, !llvm.loop !28

.preheader:                                       ; preds = %.split194.us, %336, %.split194.us.peel
  %.us-phi196.lcssa = phi i32 [ %.us-phi196.peel, %.split194.us.peel ], [ 39, %336 ], [ %.us-phi196.ph220, %.split194.us ]
  %340 = getelementptr inbounds i8, ptr %2, i64 16
  %wide.load329 = load <4 x i32>, ptr %340, align 16, !tbaa !17
  %341 = icmp eq <4 x i32> %wide.load329, <i32 1, i32 1, i32 1, i32 1>
  %342 = sext <4 x i1> %341 to <4 x i32>
  %343 = getelementptr inbounds i8, ptr %2, i64 48
  %wide.load329.1 = load <4 x i32>, ptr %343, align 16, !tbaa !17
  %344 = icmp eq <4 x i32> %wide.load329.1, <i32 1, i32 1, i32 1, i32 1>
  %345 = sext <4 x i1> %344 to <4 x i32>
  %346 = add nsw <4 x i32> %342, %345
  %347 = getelementptr inbounds i8, ptr %2, i64 80
  %wide.load329.2 = load <4 x i32>, ptr %347, align 16, !tbaa !17
  %348 = icmp eq <4 x i32> %wide.load329.2, <i32 1, i32 1, i32 1, i32 1>
  %349 = sext <4 x i1> %348 to <4 x i32>
  %350 = add nsw <4 x i32> %346, %349
  %351 = getelementptr inbounds i8, ptr %2, i64 112
  %wide.load329.3 = load <4 x i32>, ptr %351, align 16, !tbaa !17
  %352 = icmp eq <4 x i32> %wide.load329.3, <i32 1, i32 1, i32 1, i32 1>
  %353 = sext <4 x i1> %352 to <4 x i32>
  %354 = add nsw <4 x i32> %350, %353
  %355 = getelementptr inbounds i8, ptr %2, i64 144
  %wide.load329.4 = load <4 x i32>, ptr %355, align 16, !tbaa !17
  %356 = icmp eq <4 x i32> %wide.load329.4, <i32 1, i32 1, i32 1, i32 1>
  %357 = sext <4 x i1> %356 to <4 x i32>
  %358 = add nsw <4 x i32> %354, %357
  %359 = getelementptr inbounds i8, ptr %2, i64 176
  %wide.load329.5 = load <4 x i32>, ptr %359, align 16, !tbaa !17
  %360 = icmp eq <4 x i32> %wide.load329.5, <i32 1, i32 1, i32 1, i32 1>
  %361 = sext <4 x i1> %360 to <4 x i32>
  %362 = add nsw <4 x i32> %358, %361
  %363 = getelementptr inbounds i8, ptr %2, i64 208
  %wide.load329.6 = load <4 x i32>, ptr %363, align 16, !tbaa !17
  %364 = icmp eq <4 x i32> %wide.load329.6, <i32 1, i32 1, i32 1, i32 1>
  %365 = sext <4 x i1> %364 to <4 x i32>
  %366 = add nsw <4 x i32> %362, %365
  %367 = getelementptr inbounds i8, ptr %2, i64 240
  %wide.load329.7 = load <4 x i32>, ptr %367, align 16, !tbaa !17
  %368 = icmp eq <4 x i32> %wide.load329.7, <i32 1, i32 1, i32 1, i32 1>
  %369 = sext <4 x i1> %368 to <4 x i32>
  %370 = add <4 x i32> %366, %369
  %371 = getelementptr inbounds i8, ptr %2, i64 272
  %wide.load329.8 = load <4 x i32>, ptr %371, align 16, !tbaa !17
  %372 = icmp eq <4 x i32> %wide.load329.8, <i32 1, i32 1, i32 1, i32 1>
  %373 = sext <4 x i1> %372 to <4 x i32>
  %374 = add <4 x i32> %370, %373
  %375 = getelementptr inbounds i8, ptr %2, i64 304
  %wide.load329.9 = load <4 x i32>, ptr %375, align 16, !tbaa !17
  %376 = icmp eq <4 x i32> %wide.load329.9, <i32 1, i32 1, i32 1, i32 1>
  %377 = sext <4 x i1> %376 to <4 x i32>
  %378 = add <4 x i32> %374, %377
  %379 = getelementptr inbounds i8, ptr %2, i64 336
  %wide.load329.10 = load <4 x i32>, ptr %379, align 16, !tbaa !17
  %380 = icmp eq <4 x i32> %wide.load329.10, <i32 1, i32 1, i32 1, i32 1>
  %381 = sext <4 x i1> %380 to <4 x i32>
  %382 = add <4 x i32> %378, %381
  %383 = getelementptr inbounds i8, ptr %2, i64 368
  %wide.load329.11 = load <4 x i32>, ptr %383, align 16, !tbaa !17
  %384 = icmp eq <4 x i32> %wide.load329.11, <i32 1, i32 1, i32 1, i32 1>
  %385 = sext <4 x i1> %384 to <4 x i32>
  %386 = add <4 x i32> %382, %385
  %387 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %.us-phi196.lcssa, i64 0
  %wide.load328 = load <4 x i32>, ptr %2, align 16, !tbaa !17
  %388 = icmp eq <4 x i32> %wide.load328, <i32 1, i32 1, i32 1, i32 1>
  %389 = sext <4 x i1> %388 to <4 x i32>
  %390 = add <4 x i32> %387, %389
  %391 = getelementptr inbounds i8, ptr %2, i64 32
  %wide.load328.1 = load <4 x i32>, ptr %391, align 16, !tbaa !17
  %392 = icmp eq <4 x i32> %wide.load328.1, <i32 1, i32 1, i32 1, i32 1>
  %393 = sext <4 x i1> %392 to <4 x i32>
  %394 = add <4 x i32> %390, %393
  %395 = getelementptr inbounds i8, ptr %2, i64 64
  %wide.load328.2 = load <4 x i32>, ptr %395, align 16, !tbaa !17
  %396 = icmp eq <4 x i32> %wide.load328.2, <i32 1, i32 1, i32 1, i32 1>
  %397 = sext <4 x i1> %396 to <4 x i32>
  %398 = add <4 x i32> %394, %397
  %399 = getelementptr inbounds i8, ptr %2, i64 96
  %wide.load328.3 = load <4 x i32>, ptr %399, align 16, !tbaa !17
  %400 = icmp eq <4 x i32> %wide.load328.3, <i32 1, i32 1, i32 1, i32 1>
  %401 = sext <4 x i1> %400 to <4 x i32>
  %402 = add <4 x i32> %398, %401
  %403 = getelementptr inbounds i8, ptr %2, i64 128
  %wide.load328.4 = load <4 x i32>, ptr %403, align 16, !tbaa !17
  %404 = icmp eq <4 x i32> %wide.load328.4, <i32 1, i32 1, i32 1, i32 1>
  %405 = sext <4 x i1> %404 to <4 x i32>
  %406 = add <4 x i32> %402, %405
  %407 = getelementptr inbounds i8, ptr %2, i64 160
  %wide.load328.5 = load <4 x i32>, ptr %407, align 16, !tbaa !17
  %408 = icmp eq <4 x i32> %wide.load328.5, <i32 1, i32 1, i32 1, i32 1>
  %409 = sext <4 x i1> %408 to <4 x i32>
  %410 = add <4 x i32> %406, %409
  %411 = getelementptr inbounds i8, ptr %2, i64 192
  %wide.load328.6 = load <4 x i32>, ptr %411, align 16, !tbaa !17
  %412 = icmp eq <4 x i32> %wide.load328.6, <i32 1, i32 1, i32 1, i32 1>
  %413 = sext <4 x i1> %412 to <4 x i32>
  %414 = add <4 x i32> %410, %413
  %415 = getelementptr inbounds i8, ptr %2, i64 224
  %wide.load328.7 = load <4 x i32>, ptr %415, align 16, !tbaa !17
  %416 = icmp eq <4 x i32> %wide.load328.7, <i32 1, i32 1, i32 1, i32 1>
  %417 = sext <4 x i1> %416 to <4 x i32>
  %418 = add <4 x i32> %414, %417
  %419 = getelementptr inbounds i8, ptr %2, i64 256
  %wide.load328.8 = load <4 x i32>, ptr %419, align 16, !tbaa !17
  %420 = icmp eq <4 x i32> %wide.load328.8, <i32 1, i32 1, i32 1, i32 1>
  %421 = sext <4 x i1> %420 to <4 x i32>
  %422 = add <4 x i32> %418, %421
  %423 = getelementptr inbounds i8, ptr %2, i64 288
  %wide.load328.9 = load <4 x i32>, ptr %423, align 16, !tbaa !17
  %424 = icmp eq <4 x i32> %wide.load328.9, <i32 1, i32 1, i32 1, i32 1>
  %425 = sext <4 x i1> %424 to <4 x i32>
  %426 = add <4 x i32> %422, %425
  %427 = getelementptr inbounds i8, ptr %2, i64 320
  %wide.load328.10 = load <4 x i32>, ptr %427, align 16, !tbaa !17
  %428 = icmp eq <4 x i32> %wide.load328.10, <i32 1, i32 1, i32 1, i32 1>
  %429 = sext <4 x i1> %428 to <4 x i32>
  %430 = add <4 x i32> %426, %429
  %431 = getelementptr inbounds i8, ptr %2, i64 352
  %wide.load328.11 = load <4 x i32>, ptr %431, align 16, !tbaa !17
  %432 = icmp eq <4 x i32> %wide.load328.11, <i32 1, i32 1, i32 1, i32 1>
  %433 = sext <4 x i1> %432 to <4 x i32>
  %434 = add <4 x i32> %430, %433
  %bin.rdx331 = add <4 x i32> %386, %434
  %435 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx331)
  %436 = getelementptr inbounds i8, ptr %2, i64 384
  %437 = load i32, ptr %436, align 16, !tbaa !17
  %438 = icmp eq i32 %437, 1
  %439 = sext i1 %438 to i32
  %spec.select120 = add nsw i32 %435, %439
  %440 = getelementptr inbounds i8, ptr %2, i64 388
  %441 = load i32, ptr %440, align 4, !tbaa !17
  %442 = icmp eq i32 %441, 1
  %443 = sext i1 %442 to i32
  %spec.select120.1 = add nsw i32 %spec.select120, %443
  %444 = getelementptr inbounds i8, ptr %2, i64 392
  %445 = load i32, ptr %444, align 8, !tbaa !17
  %446 = icmp eq i32 %445, 1
  %447 = sext i1 %446 to i32
  %spec.select120.2 = add nsw i32 %spec.select120.1, %447
  %448 = getelementptr inbounds i8, ptr %2, i64 396
  %449 = load i32, ptr %448, align 4, !tbaa !17
  %450 = icmp eq i32 %449, 1
  %.neg346 = zext i1 %450 to i32
  %451 = icmp eq i32 %spec.select120.2, %.neg346
  br i1 %451, label %453, label %452

452:                                              ; preds = %.preheader
  call void @__assert_fail(ptr noundef nonnull @.str.167, ptr noundef nonnull @.str.14, i32 noundef 2391, ptr noundef nonnull @__PRETTY_FUNCTION__.test_loop_generic) #7
  unreachable

453:                                              ; preds = %.preheader
  call void @sc_map_term_64(ptr noundef nonnull %1) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #6
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"sc_map_64", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !11, i64 24, !11, i64 25, !11, i64 26}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_Bool", !8, i64 0}
!12 = !{i8 0, i8 2}
!13 = !{!14, !15, i64 8}
!14 = !{!"sc_map_item_64", !15, i64 0, !15, i64 8}
!15 = !{!"long", !8, i64 0}
!16 = !{!14, !15, i64 0}
!17 = !{!10, !10, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19, !21}
!21 = !{!"llvm.loop.peeled.count", i32 1}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19}
!24 = distinct !{!24, !19, !21}
!25 = distinct !{!25, !19}
!26 = distinct !{!26, !19, !21}
!27 = distinct !{!27, !19}
!28 = distinct !{!28, !19, !21}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass