; 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_ll = type { ptr, i32, i32, i32, i32, i8, i8, i8 }

@.str.13 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [56 x i8], align 1
@__PRETTY_FUNCTION__.test_ll = external hidden unnamed_addr constant [19 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [17 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: nounwind uwtable
define dso_local void @test_ll() #1 {
  %1 = alloca %struct.sc_map_ll, align 8
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca [10000 x i64], align 16
  %11 = alloca i32, align 4
  %12 = alloca i64, 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
  call void @srand(i32 noundef 2132132131) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %1) #6
  %18 = call zeroext i1 @sc_map_init_ll(ptr noundef %1, i32 noundef 0, i32 noundef 0)
  br i1 %18, label %19, label %20

19:                                               ; preds = %0
  br label %21

20:                                               ; preds = %0
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.14, i32 noundef 92, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

21:                                               ; preds = %19
  call void @sc_map_term_ll(ptr noundef %1)
  %22 = call zeroext i1 @sc_map_init_ll(ptr noundef %1, i32 noundef 0, i32 noundef 1)
  %23 = zext i1 %22 to i32
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %21
  br label %27

26:                                               ; preds = %21
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.14, i32 noundef 94, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

27:                                               ; preds = %25
  %28 = call zeroext i1 @sc_map_init_ll(ptr noundef %1, i32 noundef 0, i32 noundef 99)
  %29 = zext i1 %28 to i32
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %32

31:                                               ; preds = %27
  br label %33

32:                                               ; preds = %27
  call void @__assert_fail(ptr noundef @.str.16, ptr noundef @.str.14, i32 noundef 95, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

33:                                               ; preds = %31
  %34 = call zeroext i1 @sc_map_init_ll(ptr noundef %1, i32 noundef 16, i32 noundef 94)
  br i1 %34, label %35, label %36

35:                                               ; preds = %33
  br label %37

36:                                               ; preds = %33
  call void @__assert_fail(ptr noundef @.str.17, ptr noundef @.str.14, i32 noundef 97, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

37:                                               ; preds = %35
  %38 = call i64 @sc_map_del_ll(ptr noundef %1, i64 noundef 0)
  %39 = getelementptr inbounds %struct.sc_map_ll, ptr %1, i32 0, i32 7
  %40 = load i8, ptr %39, align 2, !tbaa !5, !range !12, !noundef !13
  %41 = trunc i8 %40 to i1
  br i1 %41, label %43, label %42

42:                                               ; preds = %37
  br label %44

43:                                               ; preds = %37
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.14, i32 noundef 100, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

44:                                               ; preds = %42
  %45 = call i64 @sc_map_del_ll(ptr noundef %1, i64 noundef 1)
  %46 = getelementptr inbounds %struct.sc_map_ll, ptr %1, i32 0, i32 7
  %47 = load i8, ptr %46, align 2, !tbaa !5, !range !12, !noundef !13
  %48 = trunc i8 %47 to i1
  br i1 %48, label %50, label %49

49:                                               ; preds = %44
  br label %51

50:                                               ; preds = %44
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.14, i32 noundef 103, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

51:                                               ; preds = %49
  %52 = call i64 @sc_map_get_ll(ptr noundef %1, i64 noundef 0)
  %53 = getelementptr inbounds %struct.sc_map_ll, ptr %1, i32 0, i32 7
  %54 = load i8, ptr %53, align 2, !tbaa !5, !range !12, !noundef !13
  %55 = trunc i8 %54 to i1
  br i1 %55, label %57, label %56

56:                                               ; preds = %51
  br label %58

57:                                               ; preds = %51
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.14, i32 noundef 106, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

58:                                               ; preds = %56
  %59 = call i64 @sc_map_put_ll(ptr noundef %1, i64 noundef 0, i64 noundef 500)
  %60 = call i64 @sc_map_get_ll(ptr noundef %1, i64 noundef 0)
  %61 = icmp eq i64 %60, 500
  br i1 %61, label %62, label %63

62:                                               ; preds = %58
  br label %64

63:                                               ; preds = %58
  call void @__assert_fail(ptr noundef @.str.19, ptr noundef @.str.14, i32 noundef 108, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

64:                                               ; preds = %62
  %65 = getelementptr inbounds %struct.sc_map_ll, ptr %1, i32 0, i32 7
  %66 = load i8, ptr %65, align 2, !tbaa !5, !range !12, !noundef !13
  %67 = trunc i8 %66 to i1
  br i1 %67, label %68, label %69

68:                                               ; preds = %64
  br label %70

69:                                               ; preds = %64
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 109, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

70:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !14
  br label %71

71:                                               ; preds = %81, %70
  %72 = load i32, ptr %2, align 4, !tbaa !14
  %73 = icmp slt i32 %72, 14
  br i1 %73, label %75, label %74

74:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %84

75:                                               ; preds = %71
  %76 = load i32, ptr %2, align 4, !tbaa !14
  %77 = sext i32 %76 to i64
  %78 = load i32, ptr %2, align 4, !tbaa !14
  %79 = sext i32 %78 to i64
  %80 = call i64 @sc_map_put_ll(ptr noundef %1, i64 noundef %77, i64 noundef %79)
  br label %81

81:                                               ; preds = %75
  %82 = load i32, ptr %2, align 4, !tbaa !14
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %2, align 4, !tbaa !14
  br label %71, !llvm.loop !15

84:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 100, ptr %3, align 4, !tbaa !14
  br label %85

85:                                               ; preds = %99, %84
  %86 = load i32, ptr %3, align 4, !tbaa !14
  %87 = icmp slt i32 %86, 200
  br i1 %87, label %89, label %88

88:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %102

89:                                               ; preds = %85
  %90 = load i32, ptr %3, align 4, !tbaa !14
  %91 = sext i32 %90 to i64
  %92 = call i64 @sc_map_del_ll(ptr noundef %1, i64 noundef %91)
  %93 = getelementptr inbounds %struct.sc_map_ll, ptr %1, i32 0, i32 7
  %94 = load i8, ptr %93, align 2, !tbaa !5, !range !12, !noundef !13
  %95 = trunc i8 %94 to i1
  br i1 %95, label %97, label %96

96:                                               ; preds = %89
  br label %98

97:                                               ; preds = %89
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.14, i32 noundef 117, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

98:                                               ; preds = %96
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %3, align 4, !tbaa !14
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %3, align 4, !tbaa !14
  br label %85, !llvm.loop !17

102:                                              ; preds = %88
  call void @sc_map_clear_ll(ptr noundef %1)
  call void @sc_map_clear_ll(ptr noundef %1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !14
  br label %103

103:                                              ; preds = %113, %102
  %104 = load i32, ptr %4, align 4, !tbaa !14
  %105 = icmp slt i32 %104, 5
  br i1 %105, label %107, label %106

106:                                              ; preds = %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %116

107:                                              ; preds = %103
  %108 = load i32, ptr %4, align 4, !tbaa !14
  %109 = sext i32 %108 to i64
  %110 = load i32, ptr %4, align 4, !tbaa !14
  %111 = sext i32 %110 to i64
  %112 = call i64 @sc_map_put_ll(ptr noundef %1, i64 noundef %109, i64 noundef %111)
  br label %113

113:                                              ; preds = %107
  %114 = load i32, ptr %4, align 4, !tbaa !14
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %4, align 4, !tbaa !14
  br label %103, !llvm.loop !18

116:                                              ; preds = %106
  %117 = call i64 @sc_map_put_ll(ptr noundef %1, i64 noundef 31, i64 noundef 15)
  %118 = call i64 @sc_map_put_ll(ptr noundef %1, i64 noundef 15, i64 noundef 15)
  %119 = call i64 @sc_map_put_ll(ptr noundef %1, i64 noundef 46, i64 noundef 15)
  %120 = call i64 @sc_map_get_ll(ptr noundef %1, i64 noundef 19)
  %121 = getelementptr inbounds %struct.sc_map_ll, ptr %1, i32 0, i32 7
  %122 = load i8, ptr %121, align 2, !tbaa !5, !range !12, !noundef !13
  %123 = trunc i8 %122 to i1
  br i1 %123, label %125, label %124

124:                                              ; preds = %116
  br label %126

125:                                              ; preds = %116
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.14, i32 noundef 131, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

126:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !14
  br label %127

127:                                              ; preds = %140, %126
  %128 = load i32, ptr %5, align 4, !tbaa !14
  %129 = icmp slt i32 %128, 5
  br i1 %129, label %131, label %130

130:                                              ; preds = %127
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %143

131:                                              ; preds = %127
  %132 = load i32, ptr %5, align 4, !tbaa !14
  %133 = mul nsw i32 5, %132
  %134 = load i32, ptr %5, align 4, !tbaa !14
  %135 = add nsw i32 %133, %134
  %136 = sext i32 %135 to i64
  %137 = load i32, ptr %5, align 4, !tbaa !14
  %138 = sext i32 %137 to i64
  %139 = call i64 @sc_map_put_ll(ptr noundef %1, i64 noundef %136, i64 noundef %138)
  br label %140

140:                                              ; preds = %131
  %141 = load i32, ptr %5, align 4, !tbaa !14
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %5, align 4, !tbaa !14
  br label %127, !llvm.loop !19

143:                                              ; preds = %130
  %144 = call i64 @sc_map_del_ll(ptr noundef %1, i64 noundef 4)
  %145 = getelementptr inbounds %struct.sc_map_ll, ptr %1, i32 0, i32 7
  %146 = load i8, ptr %145, align 2, !tbaa !5, !range !12, !noundef !13
  %147 = trunc i8 %146 to i1
  br i1 %147, label %148, label %149

148:                                              ; preds = %143
  br label %150

149:                                              ; preds = %143
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 138, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

150:                                              ; preds = %148
  %151 = call i64 @sc_map_del_ll(ptr noundef %1, i64 noundef 46)
  %152 = getelementptr inbounds %struct.sc_map_ll, ptr %1, i32 0, i32 7
  %153 = load i8, ptr %152, align 2, !tbaa !5, !range !12, !noundef !13
  %154 = trunc i8 %153 to i1
  br i1 %154, label %155, label %156

155:                                              ; preds = %150
  br label %157

156:                                              ; preds = %150
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 141, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

157:                                              ; preds = %155
  %158 = call i64 @sc_map_del_ll(ptr noundef %1, i64 noundef 15)
  %159 = getelementptr inbounds %struct.sc_map_ll, ptr %1, i32 0, i32 7
  %160 = load i8, ptr %159, align 2, !tbaa !5, !range !12, !noundef !13
  %161 = trunc i8 %160 to i1
  br i1 %161, label %162, label %163

162:                                              ; preds = %157
  br label %164

163:                                              ; preds = %157
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 144, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

164:                                              ; preds = %162
  call void @sc_map_clear_ll(ptr noundef %1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 1, ptr %6, align 4, !tbaa !14
  br label %165

165:                                              ; preds = %176, %164
  %166 = load i32, ptr %6, align 4, !tbaa !14
  %167 = icmp slt i32 %166, 4
  br i1 %167, label %169, label %168

168:                                              ; preds = %165
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %179

169:                                              ; preds = %165
  %170 = load i32, ptr %6, align 4, !tbaa !14
  %171 = mul nsw i32 16, %170
  %172 = sext i32 %171 to i64
  %173 = load i32, ptr %6, align 4, !tbaa !14
  %174 = sext i32 %173 to i64
  %175 = call i64 @sc_map_put_ll(ptr noundef %1, i64 noundef %172, i64 noundef %174)
  br label %176

176:                                              ; preds = %169
  %177 = load i32, ptr %6, align 4, !tbaa !14
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %6, align 4, !tbaa !14
  br label %165, !llvm.loop !20

179:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 1, ptr %7, align 4, !tbaa !14
  br label %180

180:                                              ; preds = %191, %179
  %181 = load i32, ptr %7, align 4, !tbaa !14
  %182 = icmp slt i32 %181, 4
  br i1 %182, label %184, label %183

183:                                              ; preds = %180
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %194

184:                                              ; preds = %180
  %185 = load i32, ptr %7, align 4, !tbaa !14
  %186 = mul nsw i32 1024, %185
  %187 = sext i32 %186 to i64
  %188 = load i32, ptr %7, align 4, !tbaa !14
  %189 = sext i32 %188 to i64
  %190 = call i64 @sc_map_put_ll(ptr noundef %1, i64 noundef %187, i64 noundef %189)
  br label %191

191:                                              ; preds = %184
  %192 = load i32, ptr %7, align 4, !tbaa !14
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %7, align 4, !tbaa !14
  br label %180, !llvm.loop !21

194:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 1, ptr %8, align 4, !tbaa !14
  br label %195

195:                                              ; preds = %206, %194
  %196 = load i32, ptr %8, align 4, !tbaa !14
  %197 = icmp slt i32 %196, 4
  br i1 %197, label %199, label %198

198:                                              ; preds = %195
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %209

199:                                              ; preds = %195
  %200 = load i32, ptr %8, align 4, !tbaa !14
  %201 = mul nsw i32 512, %200
  %202 = sext i32 %201 to i64
  %203 = load i32, ptr %8, align 4, !tbaa !14
  %204 = sext i32 %203 to i64
  %205 = call i64 @sc_map_put_ll(ptr noundef %1, i64 noundef %202, i64 noundef %204)
  br label %206

206:                                              ; preds = %199
  %207 = load i32, ptr %8, align 4, !tbaa !14
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %8, align 4, !tbaa !14
  br label %195, !llvm.loop !22

209:                                              ; preds = %198
  %210 = call i64 @sc_map_del_ll(ptr noundef %1, i64 noundef 512)
  %211 = getelementptr inbounds %struct.sc_map_ll, ptr %1, i32 0, i32 7
  %212 = load i8, ptr %211, align 2, !tbaa !5, !range !12, !noundef !13
  %213 = trunc i8 %212 to i1
  br i1 %213, label %214, label %215

214:                                              ; preds = %209
  br label %216

215:                                              ; preds = %209
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 159, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

216:                                              ; preds = %214
  %217 = call i64 @sc_map_del_ll(ptr noundef %1, i64 noundef 1024)
  %218 = getelementptr inbounds %struct.sc_map_ll, ptr %1, i32 0, i32 7
  %219 = load i8, ptr %218, align 2, !tbaa !5, !range !12, !noundef !13
  %220 = trunc i8 %219 to i1
  br i1 %220, label %221, label %222

221:                                              ; preds = %216
  br label %223

222:                                              ; preds = %216
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 162, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

223:                                              ; preds = %221
  %224 = call i64 @sc_map_del_ll(ptr noundef %1, i64 noundef 48)
  %225 = getelementptr inbounds %struct.sc_map_ll, ptr %1, i32 0, i32 7
  %226 = load i8, ptr %225, align 2, !tbaa !5, !range !12, !noundef !13
  %227 = trunc i8 %226 to i1
  br i1 %227, label %228, label %229

228:                                              ; preds = %223
  br label %230

229:                                              ; preds = %223
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 165, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

230:                                              ; preds = %228
  call void @sc_map_term_ll(ptr noundef %1)
  %231 = call zeroext i1 @sc_map_init_ll(ptr noundef %1, i32 noundef 2, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !14
  br label %232

232:                                              ; preds = %250, %230
  %233 = load i32, ptr %9, align 4, !tbaa !14
  %234 = icmp slt i32 %233, 1000000
  br i1 %234, label %236, label %235

235:                                              ; preds = %232
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %253

236:                                              ; preds = %232
  %237 = call i32 @sc_map_size_ll(ptr noundef %1)
  %238 = icmp ult i32 %237, 16
  br i1 %238, label %239, label %243

239:                                              ; preds = %236
  %240 = load i32, ptr %9, align 4, !tbaa !14
  %241 = sext i32 %240 to i64
  %242 = call i64 @sc_map_put_ll(ptr noundef %1, i64 noundef %241, i64 noundef 1)
  br label %249

243:                                              ; preds = %236
  %244 = call i32 @rand() #6
  %245 = load i32, ptr %9, align 4, !tbaa !14
  %246 = srem i32 %244, %245
  %247 = sext i32 %246 to i64
  %248 = call i64 @sc_map_del_ll(ptr noundef %1, i64 noundef %247)
  br label %249

249:                                              ; preds = %243, %239
  br label %250

250:                                              ; preds = %249
  %251 = load i32, ptr %9, align 4, !tbaa !14
  %252 = add nsw i32 %251, 1
  store i32 %252, ptr %9, align 4, !tbaa !14
  br label %232, !llvm.loop !23

253:                                              ; preds = %235
  call void @sc_map_term_ll(ptr noundef %1)
  call void @llvm.lifetime.start.p0(i64 80000, ptr %10) #6
  call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 80000, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %254 = call zeroext i1 @sc_map_init_ll(ptr noundef %1, i32 noundef 2, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !14
  br label %255

255:                                              ; preds = %387, %253
  %256 = load i32, ptr %13, align 4, !tbaa !14
  %257 = icmp slt i32 %256, 10000000
  br i1 %257, label %259, label %258

258:                                              ; preds = %255
  store i32 26, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %390

259:                                              ; preds = %255
  %260 = call i32 @sc_map_size_ll(ptr noundef %1)
  %261 = load i32, ptr %11, align 4, !tbaa !14
  %262 = icmp eq i32 %260, %261
  br i1 %262, label %263, label %264

263:                                              ; preds = %259
  br label %265

264:                                              ; preds = %259
  call void @__assert_fail(ptr noundef @.str.21, ptr noundef @.str.14, i32 noundef 185, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

265:                                              ; preds = %263
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %266 = load i32, ptr %13, align 4, !tbaa !14
  %267 = srem i32 %266, 10000
  store i32 %267, ptr %15, align 4, !tbaa !14
  %268 = call i32 @rand() #6
  %269 = srem i32 %268, 6719
  %270 = icmp eq i32 %269, 0
  br i1 %270, label %271, label %308

271:                                              ; preds = %265
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !14
  br label %272

272:                                              ; preds = %295, %271
  %273 = load i32, ptr %16, align 4, !tbaa !14
  %274 = icmp slt i32 %273, 10000
  br i1 %274, label %276, label %275

275:                                              ; preds = %272
  store i32 29, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %298

276:                                              ; preds = %272
  %277 = load i32, ptr %16, align 4, !tbaa !14
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds [10000 x i64], ptr %10, i64 0, i64 %278
  %280 = load i64, ptr %279, align 8, !tbaa !24
  %281 = icmp ne i64 %280, 0
  br i1 %281, label %282, label %294

282:                                              ; preds = %276
  %283 = load i32, ptr %16, align 4, !tbaa !14
  %284 = sext i32 %283 to i64
  %285 = call i64 @sc_map_get_ll(ptr noundef %1, i64 noundef %284)
  %286 = load i32, ptr %16, align 4, !tbaa !14
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds [10000 x i64], ptr %10, i64 0, i64 %287
  %289 = load i64, ptr %288, align 8, !tbaa !24
  %290 = icmp eq i64 %285, %289
  br i1 %290, label %291, label %292

291:                                              ; preds = %282
  br label %293

292:                                              ; preds = %282
  call void @__assert_fail(ptr noundef @.str.22, ptr noundef @.str.14, i32 noundef 192, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

293:                                              ; preds = %291
  br label %294

294:                                              ; preds = %293, %276
  br label %295

295:                                              ; preds = %294
  %296 = load i32, ptr %16, align 4, !tbaa !14
  %297 = add nsw i32 %296, 1
  store i32 %297, ptr %16, align 4, !tbaa !14
  br label %272, !llvm.loop !26

298:                                              ; preds = %275
  call void @sc_map_term_ll(ptr noundef %1)
  %299 = load i32, ptr %15, align 4, !tbaa !14
  %300 = load i32, ptr %13, align 4, !tbaa !14
  %301 = srem i32 %300, 70
  %302 = add nsw i32 25, %301
  %303 = call zeroext i1 @sc_map_init_ll(ptr noundef %1, i32 noundef %299, i32 noundef %302)
  br i1 %303, label %304, label %305

304:                                              ; preds = %298
  br label %306

305:                                              ; preds = %298
  call void @__assert_fail(ptr noundef @.str.23, ptr noundef @.str.14, i32 noundef 196, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

306:                                              ; preds = %304
  store i32 0, ptr %11, align 4, !tbaa !14
  %307 = getelementptr inbounds [10000 x i64], ptr %10, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %307, i8 0, i64 80000, i1 false)
  br label %308

308:                                              ; preds = %306, %265
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %309 = call i32 @rand() #6
  %310 = srem i32 %309, 3
  store i32 %310, ptr %17, align 4, !tbaa !14
  %311 = load i32, ptr %17, align 4, !tbaa !14
  switch i32 %311, label %386 [
    i32 0, label %312
    i32 1, label %343
    i32 2, label %367
  ]

312:                                              ; preds = %308
  %313 = load i32, ptr %15, align 4, !tbaa !14
  %314 = sext i32 %313 to i64
  %315 = load i32, ptr %13, align 4, !tbaa !14
  %316 = mul nsw i32 %315, 33
  %317 = sext i32 %316 to i64
  %318 = call i64 @sc_map_put_ll(ptr noundef %1, i64 noundef %314, i64 noundef %317)
  store i64 %318, ptr %12, align 8, !tbaa !24
  %319 = load i32, ptr %15, align 4, !tbaa !14
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds [10000 x i64], ptr %10, i64 0, i64 %320
  %322 = load i64, ptr %321, align 8, !tbaa !24
  %323 = icmp ne i64 %322, 0
  br i1 %323, label %324, label %333

324:                                              ; preds = %312
  %325 = load i32, ptr %15, align 4, !tbaa !14
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds [10000 x i64], ptr %10, i64 0, i64 %326
  %328 = load i64, ptr %327, align 8, !tbaa !24
  store i64 %328, ptr %12, align 8, !tbaa !24
  %329 = icmp ne i64 %328, 0
  br i1 %329, label %330, label %331

330:                                              ; preds = %324
  br label %332

331:                                              ; preds = %324
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.14, i32 noundef 207, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

332:                                              ; preds = %330
  br label %336

333:                                              ; preds = %312
  %334 = load i32, ptr %11, align 4, !tbaa !14
  %335 = add i32 %334, 1
  store i32 %335, ptr %11, align 4, !tbaa !14
  br label %336

336:                                              ; preds = %333, %332
  %337 = load i32, ptr %13, align 4, !tbaa !14
  %338 = mul nsw i32 %337, 33
  %339 = sext i32 %338 to i64
  %340 = load i32, ptr %15, align 4, !tbaa !14
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds [10000 x i64], ptr %10, i64 0, i64 %341
  store i64 %339, ptr %342, align 8, !tbaa !24
  br label %386

343:                                              ; preds = %308
  %344 = load i32, ptr %15, align 4, !tbaa !14
  %345 = sext i32 %344 to i64
  %346 = call i64 @sc_map_del_ll(ptr noundef %1, i64 noundef %345)
  store i64 %346, ptr %12, align 8, !tbaa !24
  %347 = load i32, ptr %15, align 4, !tbaa !14
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds [10000 x i64], ptr %10, i64 0, i64 %348
  %350 = load i64, ptr %349, align 8, !tbaa !24
  %351 = icmp ne i64 %350, 0
  br i1 %351, label %352, label %363

352:                                              ; preds = %343
  %353 = load i32, ptr %15, align 4, !tbaa !14
  %354 = sext i32 %353 to i64
  %355 = getelementptr inbounds [10000 x i64], ptr %10, i64 0, i64 %354
  %356 = load i64, ptr %355, align 8, !tbaa !24
  store i64 %356, ptr %12, align 8, !tbaa !24
  %357 = icmp ne i64 %356, 0
  br i1 %357, label %358, label %359

358:                                              ; preds = %352
  br label %360

359:                                              ; preds = %352
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.14, i32 noundef 216, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

360:                                              ; preds = %358
  %361 = load i32, ptr %11, align 4, !tbaa !14
  %362 = add i32 %361, -1
  store i32 %362, ptr %11, align 4, !tbaa !14
  br label %363

363:                                              ; preds = %360, %343
  %364 = load i32, ptr %15, align 4, !tbaa !14
  %365 = sext i32 %364 to i64
  %366 = getelementptr inbounds [10000 x i64], ptr %10, i64 0, i64 %365
  store i64 0, ptr %366, align 8, !tbaa !24
  br label %386

367:                                              ; preds = %308
  %368 = load i32, ptr %15, align 4, !tbaa !14
  %369 = sext i32 %368 to i64
  %370 = call i64 @sc_map_get_ll(ptr noundef %1, i64 noundef %369)
  store i64 %370, ptr %12, align 8, !tbaa !24
  %371 = load i32, ptr %15, align 4, !tbaa !14
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds [10000 x i64], ptr %10, i64 0, i64 %372
  %374 = load i64, ptr %373, align 8, !tbaa !24
  %375 = icmp ne i64 %374, 0
  br i1 %375, label %376, label %385

376:                                              ; preds = %367
  %377 = load i32, ptr %15, align 4, !tbaa !14
  %378 = sext i32 %377 to i64
  %379 = getelementptr inbounds [10000 x i64], ptr %10, i64 0, i64 %378
  %380 = load i64, ptr %379, align 8, !tbaa !24
  store i64 %380, ptr %12, align 8, !tbaa !24
  %381 = icmp ne i64 %380, 0
  br i1 %381, label %382, label %383

382:                                              ; preds = %376
  br label %384

383:                                              ; preds = %376
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.14, i32 noundef 224, ptr noundef @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

384:                                              ; preds = %382
  br label %385

385:                                              ; preds = %384, %367
  br label %386

386:                                              ; preds = %385, %363, %336, %308
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %387

387:                                              ; preds = %386
  %388 = load i32, ptr %13, align 4, !tbaa !14
  %389 = add nsw i32 %388, 1
  store i32 %389, ptr %13, align 4, !tbaa !14
  br label %255, !llvm.loop !27

390:                                              ; preds = %258
  call void @sc_map_term_ll(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 80000, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %1) #6
  ret void
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) #2

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

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

declare void @sc_map_term_ll(ptr noundef) #3

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

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

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

declare void @sc_map_clear_ll(ptr noundef) #3

declare i32 @sc_map_size_ll(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @rand() #2

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

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


; 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_ll = type { ptr, i32, i32, i32, i32, i8, i8, i8 }

@.str.13 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [56 x i8], align 1
@__PRETTY_FUNCTION__.test_ll = external hidden unnamed_addr constant [19 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [41 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: nounwind uwtable
define dso_local void @test_ll() local_unnamed_addr #1 {
  %1 = alloca %struct.sc_map_ll, align 8
  %2 = alloca [10000 x i64], align 16
  tail call void @srand(i32 noundef 2132132131) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #6
  %3 = call zeroext i1 @sc_map_init_ll(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 0) #6
  br i1 %3, label %5, label %4

4:                                                ; preds = %0
  call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.14, i32 noundef 92, ptr noundef nonnull @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

5:                                                ; preds = %0
  call void @sc_map_term_ll(ptr noundef nonnull %1) #6
  %6 = call zeroext i1 @sc_map_init_ll(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 1) #6
  br i1 %6, label %7, label %8

7:                                                ; preds = %5
  call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.14, i32 noundef 94, ptr noundef nonnull @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

8:                                                ; preds = %5
  %9 = call zeroext i1 @sc_map_init_ll(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 99) #6
  br i1 %9, label %10, label %11

10:                                               ; preds = %8
  call void @__assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.14, i32 noundef 95, ptr noundef nonnull @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

11:                                               ; preds = %8
  %12 = call zeroext i1 @sc_map_init_ll(ptr noundef nonnull %1, i32 noundef 16, i32 noundef 94) #6
  br i1 %12, label %14, label %13

13:                                               ; preds = %11
  call void @__assert_fail(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.14, i32 noundef 97, ptr noundef nonnull @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

14:                                               ; preds = %11
  %15 = call i64 @sc_map_del_ll(ptr noundef nonnull %1, i64 noundef 0) #6
  %16 = getelementptr inbounds i8, ptr %1, i64 26
  %17 = load i8, ptr %16, align 2, !tbaa !5, !range !12, !noundef !13
  %18 = trunc nuw i8 %17 to i1
  br i1 %18, label %19, label %20

19:                                               ; preds = %14
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.14, i32 noundef 100, ptr noundef nonnull @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

20:                                               ; preds = %14
  %21 = call i64 @sc_map_del_ll(ptr noundef nonnull %1, i64 noundef 1) #6
  %22 = load i8, ptr %16, align 2, !tbaa !5, !range !12, !noundef !13
  %23 = trunc nuw i8 %22 to i1
  br i1 %23, label %24, label %25

24:                                               ; preds = %20
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.14, i32 noundef 103, ptr noundef nonnull @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

25:                                               ; preds = %20
  %26 = call i64 @sc_map_get_ll(ptr noundef nonnull %1, i64 noundef 0) #6
  %27 = load i8, ptr %16, align 2, !tbaa !5, !range !12, !noundef !13
  %28 = trunc nuw i8 %27 to i1
  br i1 %28, label %29, label %30

29:                                               ; preds = %25
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.14, i32 noundef 106, ptr noundef nonnull @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

30:                                               ; preds = %25
  %31 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 0, i64 noundef 500) #6
  %32 = call i64 @sc_map_get_ll(ptr noundef nonnull %1, i64 noundef 0) #6
  %33 = icmp eq i64 %32, 500
  br i1 %33, label %35, label %34

34:                                               ; preds = %30
  call void @__assert_fail(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.14, i32 noundef 108, ptr noundef nonnull @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

35:                                               ; preds = %30
  %36 = load i8, ptr %16, align 2, !tbaa !5, !range !12, !noundef !13
  %37 = trunc nuw i8 %36 to i1
  br i1 %37, label %.preheader76.preheader, label %52

.preheader76.preheader:                           ; preds = %35
  %38 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 0, i64 noundef 0) #6
  %39 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 1, i64 noundef 1) #6
  %40 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 2, i64 noundef 2) #6
  %41 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 3, i64 noundef 3) #6
  %42 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 4, i64 noundef 4) #6
  %43 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 5, i64 noundef 5) #6
  %44 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 6, i64 noundef 6) #6
  %45 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 7, i64 noundef 7) #6
  %46 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 8, i64 noundef 8) #6
  %47 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 9, i64 noundef 9) #6
  %48 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 10, i64 noundef 10) #6
  %49 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 11, i64 noundef 11) #6
  %50 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 12, i64 noundef 12) #6
  %51 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 13, i64 noundef 13) #6
  br label %.preheader75

52:                                               ; preds = %35
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.14, i32 noundef 109, ptr noundef nonnull @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

53:                                               ; preds = %.preheader75
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 200
  br i1 %exitcond.not, label %54, label %.preheader75, !llvm.loop !14

54:                                               ; preds = %53
  call void @sc_map_clear_ll(ptr noundef nonnull %1) #6
  call void @sc_map_clear_ll(ptr noundef nonnull %1) #6
  %55 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 0, i64 noundef 0) #6
  %56 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 1, i64 noundef 1) #6
  %57 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 2, i64 noundef 2) #6
  %58 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 3, i64 noundef 3) #6
  %59 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 4, i64 noundef 4) #6
  %60 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 31, i64 noundef 15) #6
  %61 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 15, i64 noundef 15) #6
  %62 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 46, i64 noundef 15) #6
  %63 = call i64 @sc_map_get_ll(ptr noundef nonnull %1, i64 noundef 19) #6
  %64 = load i8, ptr %16, align 2, !tbaa !5, !range !12, !noundef !13
  %65 = trunc nuw i8 %64 to i1
  br i1 %65, label %78, label %.preheader74.preheader

.preheader75:                                     ; preds = %.preheader76.preheader, %53
  %indvars.iv = phi i64 [ 100, %.preheader76.preheader ], [ %indvars.iv.next, %53 ]
  %66 = call i64 @sc_map_del_ll(ptr noundef nonnull %1, i64 noundef %indvars.iv) #6
  %67 = load i8, ptr %16, align 2, !tbaa !5, !range !12, !noundef !13
  %68 = trunc nuw i8 %67 to i1
  br i1 %68, label %69, label %53

69:                                               ; preds = %.preheader75
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.14, i32 noundef 117, ptr noundef nonnull @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

.preheader74.preheader:                           ; preds = %54
  %70 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 0, i64 noundef 0) #6
  %71 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 6, i64 noundef 1) #6
  %72 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 12, i64 noundef 2) #6
  %73 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 18, i64 noundef 3) #6
  %74 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 24, i64 noundef 4) #6
  %75 = call i64 @sc_map_del_ll(ptr noundef nonnull %1, i64 noundef 4) #6
  %76 = load i8, ptr %16, align 2, !tbaa !5, !range !12, !noundef !13
  %77 = trunc nuw i8 %76 to i1
  br i1 %77, label %80, label %79

78:                                               ; preds = %54
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.14, i32 noundef 131, ptr noundef nonnull @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

79:                                               ; preds = %.preheader74.preheader
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.14, i32 noundef 138, ptr noundef nonnull @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

80:                                               ; preds = %.preheader74.preheader
  %81 = call i64 @sc_map_del_ll(ptr noundef nonnull %1, i64 noundef 46) #6
  %82 = load i8, ptr %16, align 2, !tbaa !5, !range !12, !noundef !13
  %83 = trunc nuw i8 %82 to i1
  br i1 %83, label %85, label %84

84:                                               ; preds = %80
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.14, i32 noundef 141, ptr noundef nonnull @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

85:                                               ; preds = %80
  %86 = call i64 @sc_map_del_ll(ptr noundef nonnull %1, i64 noundef 15) #6
  %87 = load i8, ptr %16, align 2, !tbaa !5, !range !12, !noundef !13
  %88 = trunc nuw i8 %87 to i1
  br i1 %88, label %.preheader73.preheader, label %89

89:                                               ; preds = %85
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.14, i32 noundef 144, ptr noundef nonnull @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

.preheader73.preheader:                           ; preds = %85
  call void @sc_map_clear_ll(ptr noundef nonnull %1) #6
  %90 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 16, i64 noundef 1) #6
  %91 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 32, i64 noundef 2) #6
  %92 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 48, i64 noundef 3) #6
  %93 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 1024, i64 noundef 1) #6
  %94 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 2048, i64 noundef 2) #6
  %95 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 3072, i64 noundef 3) #6
  %96 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 512, i64 noundef 1) #6
  %97 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 1024, i64 noundef 2) #6
  %98 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef 1536, i64 noundef 3) #6
  %99 = call i64 @sc_map_del_ll(ptr noundef nonnull %1, i64 noundef 512) #6
  %100 = load i8, ptr %16, align 2, !tbaa !5, !range !12, !noundef !13
  %101 = trunc nuw i8 %100 to i1
  br i1 %101, label %103, label %102

102:                                              ; preds = %.preheader73.preheader
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.14, i32 noundef 159, ptr noundef nonnull @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

103:                                              ; preds = %.preheader73.preheader
  %104 = call i64 @sc_map_del_ll(ptr noundef nonnull %1, i64 noundef 1024) #6
  %105 = load i8, ptr %16, align 2, !tbaa !5, !range !12, !noundef !13
  %106 = trunc nuw i8 %105 to i1
  br i1 %106, label %108, label %107

107:                                              ; preds = %103
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.14, i32 noundef 162, ptr noundef nonnull @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

108:                                              ; preds = %103
  %109 = call i64 @sc_map_del_ll(ptr noundef nonnull %1, i64 noundef 48) #6
  %110 = load i8, ptr %16, align 2, !tbaa !5, !range !12, !noundef !13
  %111 = trunc nuw i8 %110 to i1
  br i1 %111, label %113, label %112

112:                                              ; preds = %108
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.14, i32 noundef 165, ptr noundef nonnull @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

113:                                              ; preds = %108
  call void @sc_map_term_ll(ptr noundef nonnull %1) #6
  %114 = call zeroext i1 @sc_map_init_ll(ptr noundef nonnull %1, i32 noundef 2, i32 noundef 0) #6
  br label %117

115:                                              ; preds = %128
  call void @sc_map_term_ll(ptr noundef nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 80000, ptr nonnull %2) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(80000) %2, i8 0, i64 80000, i1 false)
  %116 = call zeroext i1 @sc_map_init_ll(ptr noundef nonnull %1, i32 noundef 2, i32 noundef 0) #6
  br label %130

117:                                              ; preds = %113, %128
  %indvars.iv110 = phi i64 [ 0, %113 ], [ %indvars.iv.next111, %128 ]
  %118 = call i32 @sc_map_size_ll(ptr noundef nonnull %1) #6
  %119 = icmp ult i32 %118, 16
  br i1 %119, label %120, label %122

120:                                              ; preds = %117
  %121 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef %indvars.iv110, i64 noundef 1) #6
  br label %128

122:                                              ; preds = %117
  %123 = call i32 @rand() #6
  %124 = trunc nuw nsw i64 %indvars.iv110 to i32
  %125 = srem i32 %123, %124
  %126 = sext i32 %125 to i64
  %127 = call i64 @sc_map_del_ll(ptr noundef nonnull %1, i64 noundef %126) #6
  br label %128

128:                                              ; preds = %120, %122
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %exitcond113.not = icmp eq i64 %indvars.iv.next111, 1000000
  br i1 %exitcond113.not, label %115, label %117, !llvm.loop !16

129:                                              ; preds = %172
  call void @sc_map_term_ll(ptr noundef nonnull %1) #6
  call void @llvm.lifetime.end.p0(i64 80000, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #6
  ret void

130:                                              ; preds = %115, %172
  %indvars.iv118 = phi i64 [ 0, %115 ], [ %indvars.iv.next119, %172 ]
  %.06286 = phi i32 [ 0, %115 ], [ %.4, %172 ]
  %131 = call i32 @sc_map_size_ll(ptr noundef nonnull %1) #6
  %132 = icmp eq i32 %131, %.06286
  br i1 %132, label %134, label %133

133:                                              ; preds = %130
  call void @__assert_fail(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.14, i32 noundef 185, ptr noundef nonnull @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

134:                                              ; preds = %130
  %135 = trunc nuw nsw i64 %indvars.iv118 to i32
  %136 = urem i32 %135, 10000
  %137 = call i32 @rand() #6
  %138 = srem i32 %137, 6719
  %139 = icmp eq i32 %138, 0
  br i1 %139, label %.preheader, label %153

140:                                              ; preds = %150
  call void @sc_map_term_ll(ptr noundef nonnull %1) #6
  %141 = urem i32 %135, 70
  %142 = add nuw nsw i32 %141, 25
  %143 = call zeroext i1 @sc_map_init_ll(ptr noundef nonnull %1, i32 noundef %136, i32 noundef %142) #6
  br i1 %143, label %152, label %151

.preheader:                                       ; preds = %134, %150
  %indvars.iv114 = phi i64 [ %indvars.iv.next115, %150 ], [ 0, %134 ]
  %144 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 %indvars.iv114
  %145 = load i64, ptr %144, align 8, !tbaa !17
  %.not71 = icmp eq i64 %145, 0
  br i1 %.not71, label %150, label %146

146:                                              ; preds = %.preheader
  %147 = call i64 @sc_map_get_ll(ptr noundef nonnull %1, i64 noundef %indvars.iv114) #6
  %148 = icmp eq i64 %147, %145
  br i1 %148, label %150, label %149

149:                                              ; preds = %146
  call void @__assert_fail(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.14, i32 noundef 192, ptr noundef nonnull @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

150:                                              ; preds = %.preheader, %146
  %indvars.iv.next115 = add nuw nsw i64 %indvars.iv114, 1
  %exitcond117.not = icmp eq i64 %indvars.iv.next115, 10000
  br i1 %exitcond117.not, label %140, label %.preheader, !llvm.loop !19

151:                                              ; preds = %140
  call void @__assert_fail(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.14, i32 noundef 196, ptr noundef nonnull @__PRETTY_FUNCTION__.test_ll) #7
  unreachable

152:                                              ; preds = %140
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(80000) %2, i8 0, i64 80000, i1 false)
  br label %153

153:                                              ; preds = %152, %134
  %.1 = phi i32 [ 0, %152 ], [ %.06286, %134 ]
  %154 = call i32 @rand() #6
  %155 = srem i32 %154, 3
  switch i32 %155, label %172 [
    i32 0, label %156
    i32 1, label %163
    i32 2, label %169
  ]

156:                                              ; preds = %153
  %157 = zext nneg i32 %136 to i64
  %158 = mul nuw nsw i64 %indvars.iv118, 33
  %159 = call i64 @sc_map_put_ll(ptr noundef nonnull %1, i64 noundef %157, i64 noundef %158) #6
  %160 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 %157
  %161 = load i64, ptr %160, align 8, !tbaa !17
  %.not70 = icmp eq i64 %161, 0
  %162 = zext i1 %.not70 to i32
  %.2 = add i32 %.1, %162
  store i64 %158, ptr %160, align 8, !tbaa !17
  br label %172

163:                                              ; preds = %153
  %164 = zext nneg i32 %136 to i64
  %165 = call i64 @sc_map_del_ll(ptr noundef nonnull %1, i64 noundef %164) #6
  %166 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 %164
  %167 = load i64, ptr %166, align 8, !tbaa !17
  %.not69 = icmp ne i64 %167, 0
  %168 = sext i1 %.not69 to i32
  %.3 = add i32 %.1, %168
  store i64 0, ptr %166, align 8, !tbaa !17
  br label %172

169:                                              ; preds = %153
  %170 = zext nneg i32 %136 to i64
  %171 = call i64 @sc_map_get_ll(ptr noundef nonnull %1, i64 noundef %170) #6
  br label %172

172:                                              ; preds = %169, %163, %156, %153
  %.4 = phi i32 [ %.1, %153 ], [ %.3, %163 ], [ %.2, %156 ], [ %.1, %169 ]
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %exitcond121.not = icmp eq i64 %indvars.iv.next119, 10000000
  br i1 %exitcond121.not, label %129, label %130, !llvm.loop !20
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #2

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

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

declare void @sc_map_term_ll(ptr noundef) local_unnamed_addr #3

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

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

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

declare void @sc_map_clear_ll(ptr noundef) local_unnamed_addr #3

declare i32 @sc_map_size_ll(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #2

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass