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

@.str.14 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [28 x i8], align 1
@__PRETTY_FUNCTION__.test_int = external hidden unnamed_addr constant [20 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [42 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
declare void @srand(i32 noundef) #1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @test_int() #4 {
  %1 = alloca %struct.sc_map_int, 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_int(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.25, ptr noundef @.str.14, i32 noundef 237, ptr noundef @__PRETTY_FUNCTION__.test_int) #7
  unreachable

21:                                               ; preds = %19
  call void @sc_map_term_int(ptr noundef %1)
  %22 = call zeroext i1 @sc_map_init_int(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.26, ptr noundef @.str.14, i32 noundef 239, ptr noundef @__PRETTY_FUNCTION__.test_int) #7
  unreachable

27:                                               ; preds = %25
  %28 = call zeroext i1 @sc_map_init_int(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.27, ptr noundef @.str.14, i32 noundef 240, ptr noundef @__PRETTY_FUNCTION__.test_int) #7
  unreachable

33:                                               ; preds = %31
  %34 = call zeroext i1 @sc_map_init_int(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.28, ptr noundef @.str.14, i32 noundef 242, ptr noundef @__PRETTY_FUNCTION__.test_int) #7
  unreachable

37:                                               ; preds = %35
  %38 = call i32 @sc_map_del_int(ptr noundef %1, i32 noundef 0)
  %39 = getelementptr inbounds %struct.sc_map_int, 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 245, ptr noundef @__PRETTY_FUNCTION__.test_int) #7
  unreachable

44:                                               ; preds = %42
  %45 = call i32 @sc_map_del_int(ptr noundef %1, i32 noundef 1)
  %46 = getelementptr inbounds %struct.sc_map_int, 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 248, ptr noundef @__PRETTY_FUNCTION__.test_int) #7
  unreachable

51:                                               ; preds = %49
  %52 = call i32 @sc_map_get_int(ptr noundef %1, i32 noundef 0)
  %53 = getelementptr inbounds %struct.sc_map_int, 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 251, ptr noundef @__PRETTY_FUNCTION__.test_int) #7
  unreachable

58:                                               ; preds = %56
  %59 = call i32 @sc_map_put_int(ptr noundef %1, i32 noundef 0, i32 noundef 500)
  %60 = call i32 @sc_map_get_int(ptr noundef %1, i32 noundef 0)
  %61 = icmp eq i32 %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.29, ptr noundef @.str.14, i32 noundef 253, ptr noundef @__PRETTY_FUNCTION__.test_int) #7
  unreachable

64:                                               ; preds = %62
  %65 = getelementptr inbounds %struct.sc_map_int, 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 254, ptr noundef @__PRETTY_FUNCTION__.test_int) #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 = %79, %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 %82

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

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

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

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

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

87:                                               ; preds = %83
  %88 = load i32, ptr %3, align 4, !tbaa !14
  %89 = call i32 @sc_map_del_int(ptr noundef %1, i32 noundef %88)
  %90 = getelementptr inbounds %struct.sc_map_int, ptr %1, i32 0, i32 7
  %91 = load i8, ptr %90, align 2, !tbaa !5, !range !12, !noundef !13
  %92 = trunc i8 %91 to i1
  br i1 %92, label %94, label %93

93:                                               ; preds = %87
  br label %95

94:                                               ; preds = %87
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.14, i32 noundef 262, ptr noundef @__PRETTY_FUNCTION__.test_int) #7
  unreachable

95:                                               ; preds = %93
  br label %96

96:                                               ; preds = %95
  %97 = load i32, ptr %3, align 4, !tbaa !14
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %3, align 4, !tbaa !14
  br label %83, !llvm.loop !17

99:                                               ; preds = %86
  call void @sc_map_clear_int(ptr noundef %1)
  call void @sc_map_clear_int(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 %100

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

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

104:                                              ; preds = %100
  %105 = load i32, ptr %4, align 4, !tbaa !14
  %106 = load i32, ptr %4, align 4, !tbaa !14
  %107 = call i32 @sc_map_put_int(ptr noundef %1, i32 noundef %105, i32 noundef %106)
  br label %108

108:                                              ; preds = %104
  %109 = load i32, ptr %4, align 4, !tbaa !14
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %4, align 4, !tbaa !14
  br label %100, !llvm.loop !18

111:                                              ; preds = %103
  %112 = call i32 @sc_map_put_int(ptr noundef %1, i32 noundef 31, i32 noundef 15)
  %113 = call i32 @sc_map_put_int(ptr noundef %1, i32 noundef 15, i32 noundef 15)
  %114 = call i32 @sc_map_put_int(ptr noundef %1, i32 noundef 46, i32 noundef 15)
  %115 = call i32 @sc_map_get_int(ptr noundef %1, i32 noundef 19)
  %116 = getelementptr inbounds %struct.sc_map_int, ptr %1, i32 0, i32 7
  %117 = load i8, ptr %116, align 2, !tbaa !5, !range !12, !noundef !13
  %118 = trunc i8 %117 to i1
  br i1 %118, label %120, label %119

119:                                              ; preds = %111
  br label %121

120:                                              ; preds = %111
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.14, i32 noundef 276, ptr noundef @__PRETTY_FUNCTION__.test_int) #7
  unreachable

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

122:                                              ; preds = %133, %121
  %123 = load i32, ptr %5, align 4, !tbaa !14
  %124 = icmp slt i32 %123, 5
  br i1 %124, label %126, label %125

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

126:                                              ; preds = %122
  %127 = load i32, ptr %5, align 4, !tbaa !14
  %128 = mul nsw i32 5, %127
  %129 = load i32, ptr %5, align 4, !tbaa !14
  %130 = add nsw i32 %128, %129
  %131 = load i32, ptr %5, align 4, !tbaa !14
  %132 = call i32 @sc_map_put_int(ptr noundef %1, i32 noundef %130, i32 noundef %131)
  br label %133

133:                                              ; preds = %126
  %134 = load i32, ptr %5, align 4, !tbaa !14
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %5, align 4, !tbaa !14
  br label %122, !llvm.loop !19

136:                                              ; preds = %125
  %137 = call i32 @sc_map_del_int(ptr noundef %1, i32 noundef 4)
  %138 = getelementptr inbounds %struct.sc_map_int, ptr %1, i32 0, i32 7
  %139 = load i8, ptr %138, align 2, !tbaa !5, !range !12, !noundef !13
  %140 = trunc i8 %139 to i1
  br i1 %140, label %141, label %142

141:                                              ; preds = %136
  br label %143

142:                                              ; preds = %136
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 283, ptr noundef @__PRETTY_FUNCTION__.test_int) #7
  unreachable

143:                                              ; preds = %141
  %144 = call i32 @sc_map_del_int(ptr noundef %1, i32 noundef 46)
  %145 = getelementptr inbounds %struct.sc_map_int, 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 286, ptr noundef @__PRETTY_FUNCTION__.test_int) #7
  unreachable

150:                                              ; preds = %148
  %151 = call i32 @sc_map_del_int(ptr noundef %1, i32 noundef 15)
  %152 = getelementptr inbounds %struct.sc_map_int, 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 289, ptr noundef @__PRETTY_FUNCTION__.test_int) #7
  unreachable

157:                                              ; preds = %155
  call void @sc_map_clear_int(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 %158

158:                                              ; preds = %167, %157
  %159 = load i32, ptr %6, align 4, !tbaa !14
  %160 = icmp slt i32 %159, 4
  br i1 %160, label %162, label %161

161:                                              ; preds = %158
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %170

162:                                              ; preds = %158
  %163 = load i32, ptr %6, align 4, !tbaa !14
  %164 = mul nsw i32 16, %163
  %165 = load i32, ptr %6, align 4, !tbaa !14
  %166 = call i32 @sc_map_put_int(ptr noundef %1, i32 noundef %164, i32 noundef %165)
  br label %167

167:                                              ; preds = %162
  %168 = load i32, ptr %6, align 4, !tbaa !14
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %6, align 4, !tbaa !14
  br label %158, !llvm.loop !20

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

171:                                              ; preds = %180, %170
  %172 = load i32, ptr %7, align 4, !tbaa !14
  %173 = icmp slt i32 %172, 4
  br i1 %173, label %175, label %174

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

175:                                              ; preds = %171
  %176 = load i32, ptr %7, align 4, !tbaa !14
  %177 = mul nsw i32 1024, %176
  %178 = load i32, ptr %7, align 4, !tbaa !14
  %179 = call i32 @sc_map_put_int(ptr noundef %1, i32 noundef %177, i32 noundef %178)
  br label %180

180:                                              ; preds = %175
  %181 = load i32, ptr %7, align 4, !tbaa !14
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %7, align 4, !tbaa !14
  br label %171, !llvm.loop !21

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

184:                                              ; preds = %193, %183
  %185 = load i32, ptr %8, align 4, !tbaa !14
  %186 = icmp slt i32 %185, 4
  br i1 %186, label %188, label %187

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

188:                                              ; preds = %184
  %189 = load i32, ptr %8, align 4, !tbaa !14
  %190 = mul nsw i32 512, %189
  %191 = load i32, ptr %8, align 4, !tbaa !14
  %192 = call i32 @sc_map_put_int(ptr noundef %1, i32 noundef %190, i32 noundef %191)
  br label %193

193:                                              ; preds = %188
  %194 = load i32, ptr %8, align 4, !tbaa !14
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %8, align 4, !tbaa !14
  br label %184, !llvm.loop !22

196:                                              ; preds = %187
  %197 = call i32 @sc_map_del_int(ptr noundef %1, i32 noundef 512)
  %198 = getelementptr inbounds %struct.sc_map_int, ptr %1, i32 0, i32 7
  %199 = load i8, ptr %198, align 2, !tbaa !5, !range !12, !noundef !13
  %200 = trunc i8 %199 to i1
  br i1 %200, label %201, label %202

201:                                              ; preds = %196
  br label %203

202:                                              ; preds = %196
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 304, ptr noundef @__PRETTY_FUNCTION__.test_int) #7
  unreachable

203:                                              ; preds = %201
  %204 = call i32 @sc_map_del_int(ptr noundef %1, i32 noundef 1024)
  %205 = getelementptr inbounds %struct.sc_map_int, ptr %1, i32 0, i32 7
  %206 = load i8, ptr %205, align 2, !tbaa !5, !range !12, !noundef !13
  %207 = trunc i8 %206 to i1
  br i1 %207, label %208, label %209

208:                                              ; preds = %203
  br label %210

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

210:                                              ; preds = %208
  %211 = call i32 @sc_map_del_int(ptr noundef %1, i32 noundef 48)
  %212 = getelementptr inbounds %struct.sc_map_int, ptr %1, i32 0, i32 7
  %213 = load i8, ptr %212, align 2, !tbaa !5, !range !12, !noundef !13
  %214 = trunc i8 %213 to i1
  br i1 %214, label %215, label %216

215:                                              ; preds = %210
  br label %217

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

217:                                              ; preds = %215
  call void @sc_map_term_int(ptr noundef %1)
  %218 = call zeroext i1 @sc_map_init_int(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 %219

219:                                              ; preds = %235, %217
  %220 = load i32, ptr %9, align 4, !tbaa !14
  %221 = icmp slt i32 %220, 1000000
  br i1 %221, label %223, label %222

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

223:                                              ; preds = %219
  %224 = call i32 @sc_map_size_int(ptr noundef %1)
  %225 = icmp ult i32 %224, 16
  br i1 %225, label %226, label %229

226:                                              ; preds = %223
  %227 = load i32, ptr %9, align 4, !tbaa !14
  %228 = call i32 @sc_map_put_int(ptr noundef %1, i32 noundef %227, i32 noundef 1)
  br label %234

229:                                              ; preds = %223
  %230 = call i32 @rand() #6
  %231 = load i32, ptr %9, align 4, !tbaa !14
  %232 = srem i32 %230, %231
  %233 = call i32 @sc_map_del_int(ptr noundef %1, i32 noundef %232)
  br label %234

234:                                              ; preds = %229, %226
  br label %235

235:                                              ; preds = %234
  %236 = load i32, ptr %9, align 4, !tbaa !14
  %237 = add nsw i32 %236, 1
  store i32 %237, ptr %9, align 4, !tbaa !14
  br label %219, !llvm.loop !23

238:                                              ; preds = %222
  call void @sc_map_term_int(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
  %239 = call zeroext i1 @sc_map_init_int(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 %240

240:                                              ; preds = %371, %238
  %241 = load i32, ptr %13, align 4, !tbaa !14
  %242 = icmp slt i32 %241, 10000000
  br i1 %242, label %244, label %243

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

244:                                              ; preds = %240
  %245 = call i32 @sc_map_size_int(ptr noundef %1)
  %246 = load i32, ptr %11, align 4, !tbaa !14
  %247 = icmp eq i32 %245, %246
  br i1 %247, label %248, label %249

248:                                              ; preds = %244
  br label %250

249:                                              ; preds = %244
  call void @__assert_fail(ptr noundef @.str.30, ptr noundef @.str.14, i32 noundef 330, ptr noundef @__PRETTY_FUNCTION__.test_int) #7
  unreachable

250:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %251 = load i32, ptr %13, align 4, !tbaa !14
  %252 = srem i32 %251, 10000
  store i32 %252, ptr %15, align 4, !tbaa !14
  %253 = call i32 @rand() #6
  %254 = srem i32 %253, 6719
  %255 = icmp eq i32 %254, 0
  br i1 %255, label %256, label %293

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

257:                                              ; preds = %280, %256
  %258 = load i32, ptr %16, align 4, !tbaa !14
  %259 = icmp slt i32 %258, 10000
  br i1 %259, label %261, label %260

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

261:                                              ; preds = %257
  %262 = load i32, ptr %16, align 4, !tbaa !14
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [10000 x i64], ptr %10, i64 0, i64 %263
  %265 = load i64, ptr %264, align 8, !tbaa !24
  %266 = icmp ne i64 %265, 0
  br i1 %266, label %267, label %279

267:                                              ; preds = %261
  %268 = load i32, ptr %16, align 4, !tbaa !14
  %269 = call i32 @sc_map_get_int(ptr noundef %1, i32 noundef %268)
  %270 = sext i32 %269 to i64
  %271 = load i32, ptr %16, align 4, !tbaa !14
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [10000 x i64], ptr %10, i64 0, i64 %272
  %274 = load i64, ptr %273, align 8, !tbaa !24
  %275 = icmp eq i64 %270, %274
  br i1 %275, label %276, label %277

276:                                              ; preds = %267
  br label %278

277:                                              ; preds = %267
  call void @__assert_fail(ptr noundef @.str.31, ptr noundef @.str.14, i32 noundef 337, ptr noundef @__PRETTY_FUNCTION__.test_int) #7
  unreachable

278:                                              ; preds = %276
  br label %279

279:                                              ; preds = %278, %261
  br label %280

280:                                              ; preds = %279
  %281 = load i32, ptr %16, align 4, !tbaa !14
  %282 = add nsw i32 %281, 1
  store i32 %282, ptr %16, align 4, !tbaa !14
  br label %257, !llvm.loop !26

283:                                              ; preds = %260
  call void @sc_map_term_int(ptr noundef %1)
  %284 = load i32, ptr %15, align 4, !tbaa !14
  %285 = load i32, ptr %13, align 4, !tbaa !14
  %286 = srem i32 %285, 70
  %287 = add nsw i32 25, %286
  %288 = call zeroext i1 @sc_map_init_int(ptr noundef %1, i32 noundef %284, i32 noundef %287)
  br i1 %288, label %289, label %290

289:                                              ; preds = %283
  br label %291

290:                                              ; preds = %283
  call void @__assert_fail(ptr noundef @.str.32, ptr noundef @.str.14, i32 noundef 341, ptr noundef @__PRETTY_FUNCTION__.test_int) #7
  unreachable

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

293:                                              ; preds = %291, %250
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %294 = call i32 @rand() #6
  %295 = srem i32 %294, 3
  store i32 %295, ptr %17, align 4, !tbaa !14
  %296 = load i32, ptr %17, align 4, !tbaa !14
  switch i32 %296, label %370 [
    i32 0, label %297
    i32 1, label %327
    i32 2, label %351
  ]

297:                                              ; preds = %293
  %298 = load i32, ptr %15, align 4, !tbaa !14
  %299 = load i32, ptr %13, align 4, !tbaa !14
  %300 = mul nsw i32 %299, 33
  %301 = call i32 @sc_map_put_int(ptr noundef %1, i32 noundef %298, i32 noundef %300)
  %302 = sext i32 %301 to i64
  store i64 %302, ptr %12, align 8, !tbaa !24
  %303 = load i32, ptr %15, align 4, !tbaa !14
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds [10000 x i64], ptr %10, i64 0, i64 %304
  %306 = load i64, ptr %305, align 8, !tbaa !24
  %307 = icmp ne i64 %306, 0
  br i1 %307, label %308, label %317

308:                                              ; preds = %297
  %309 = load i32, ptr %15, align 4, !tbaa !14
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [10000 x i64], ptr %10, i64 0, i64 %310
  %312 = load i64, ptr %311, align 8, !tbaa !24
  store i64 %312, ptr %12, align 8, !tbaa !24
  %313 = icmp ne i64 %312, 0
  br i1 %313, label %314, label %315

314:                                              ; preds = %308
  br label %316

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

316:                                              ; preds = %314
  br label %320

317:                                              ; preds = %297
  %318 = load i32, ptr %11, align 4, !tbaa !14
  %319 = add i32 %318, 1
  store i32 %319, ptr %11, align 4, !tbaa !14
  br label %320

320:                                              ; preds = %317, %316
  %321 = load i32, ptr %13, align 4, !tbaa !14
  %322 = mul nsw i32 %321, 33
  %323 = sext i32 %322 to i64
  %324 = load i32, ptr %15, align 4, !tbaa !14
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds [10000 x i64], ptr %10, i64 0, i64 %325
  store i64 %323, ptr %326, align 8, !tbaa !24
  br label %370

327:                                              ; preds = %293
  %328 = load i32, ptr %15, align 4, !tbaa !14
  %329 = call i32 @sc_map_del_int(ptr noundef %1, i32 noundef %328)
  %330 = sext i32 %329 to i64
  store i64 %330, ptr %12, align 8, !tbaa !24
  %331 = load i32, ptr %15, align 4, !tbaa !14
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds [10000 x i64], ptr %10, i64 0, i64 %332
  %334 = load i64, ptr %333, align 8, !tbaa !24
  %335 = icmp ne i64 %334, 0
  br i1 %335, label %336, label %347

336:                                              ; preds = %327
  %337 = load i32, ptr %15, align 4, !tbaa !14
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds [10000 x i64], ptr %10, i64 0, i64 %338
  %340 = load i64, ptr %339, align 8, !tbaa !24
  store i64 %340, ptr %12, align 8, !tbaa !24
  %341 = icmp ne i64 %340, 0
  br i1 %341, label %342, label %343

342:                                              ; preds = %336
  br label %344

343:                                              ; preds = %336
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.14, i32 noundef 361, ptr noundef @__PRETTY_FUNCTION__.test_int) #7
  unreachable

344:                                              ; preds = %342
  %345 = load i32, ptr %11, align 4, !tbaa !14
  %346 = add i32 %345, -1
  store i32 %346, ptr %11, align 4, !tbaa !14
  br label %347

347:                                              ; preds = %344, %327
  %348 = load i32, ptr %15, align 4, !tbaa !14
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds [10000 x i64], ptr %10, i64 0, i64 %349
  store i64 0, ptr %350, align 8, !tbaa !24
  br label %370

351:                                              ; preds = %293
  %352 = load i32, ptr %15, align 4, !tbaa !14
  %353 = call i32 @sc_map_get_int(ptr noundef %1, i32 noundef %352)
  %354 = sext i32 %353 to i64
  store i64 %354, ptr %12, align 8, !tbaa !24
  %355 = load i32, ptr %15, align 4, !tbaa !14
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds [10000 x i64], ptr %10, i64 0, i64 %356
  %358 = load i64, ptr %357, align 8, !tbaa !24
  %359 = icmp ne i64 %358, 0
  br i1 %359, label %360, label %369

360:                                              ; preds = %351
  %361 = load i32, ptr %15, align 4, !tbaa !14
  %362 = sext i32 %361 to i64
  %363 = getelementptr inbounds [10000 x i64], ptr %10, i64 0, i64 %362
  %364 = load i64, ptr %363, align 8, !tbaa !24
  store i64 %364, ptr %12, align 8, !tbaa !24
  %365 = icmp ne i64 %364, 0
  br i1 %365, label %366, label %367

366:                                              ; preds = %360
  br label %368

367:                                              ; preds = %360
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.14, i32 noundef 369, ptr noundef @__PRETTY_FUNCTION__.test_int) #7
  unreachable

368:                                              ; preds = %366
  br label %369

369:                                              ; preds = %368, %351
  br label %370

370:                                              ; preds = %369, %347, %320, %293
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %371

371:                                              ; preds = %370
  %372 = load i32, ptr %13, align 4, !tbaa !14
  %373 = add nsw i32 %372, 1
  store i32 %373, ptr %13, align 4, !tbaa !14
  br label %240, !llvm.loop !27

374:                                              ; preds = %243
  call void @sc_map_term_int(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
}

declare zeroext i1 @sc_map_init_int(ptr noundef, i32 noundef, i32 noundef) #5

declare void @sc_map_term_int(ptr noundef) #5

declare i32 @sc_map_del_int(ptr noundef, i32 noundef) #5

declare i32 @sc_map_get_int(ptr noundef, i32 noundef) #5

declare i32 @sc_map_put_int(ptr noundef, i32 noundef, i32 noundef) #5

declare void @sc_map_clear_int(ptr noundef) #5

declare i32 @sc_map_size_int(ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { "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 #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_int", !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_int = type { ptr, i32, i32, i32, i32, i8, i8, i8 }

@.str.14 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [28 x i8], align 1
@__PRETTY_FUNCTION__.test_int = external hidden unnamed_addr constant [20 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [42 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
declare void @srand(i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind
declare i32 @rand() 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) #3

; Function Attrs: nounwind uwtable
define dso_local void @test_int() local_unnamed_addr #4 {
  %1 = alloca %struct.sc_map_int, 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_int(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.25, ptr noundef nonnull @.str.14, i32 noundef 237, ptr noundef nonnull @__PRETTY_FUNCTION__.test_int) #7
  unreachable

5:                                                ; preds = %0
  call void @sc_map_term_int(ptr noundef nonnull %1) #6
  %6 = call zeroext i1 @sc_map_init_int(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.26, ptr noundef nonnull @.str.14, i32 noundef 239, ptr noundef nonnull @__PRETTY_FUNCTION__.test_int) #7
  unreachable

8:                                                ; preds = %5
  %9 = call zeroext i1 @sc_map_init_int(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.27, ptr noundef nonnull @.str.14, i32 noundef 240, ptr noundef nonnull @__PRETTY_FUNCTION__.test_int) #7
  unreachable

11:                                               ; preds = %8
  %12 = call zeroext i1 @sc_map_init_int(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.28, ptr noundef nonnull @.str.14, i32 noundef 242, ptr noundef nonnull @__PRETTY_FUNCTION__.test_int) #7
  unreachable

14:                                               ; preds = %11
  %15 = call i32 @sc_map_del_int(ptr noundef nonnull %1, i32 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 245, ptr noundef nonnull @__PRETTY_FUNCTION__.test_int) #7
  unreachable

20:                                               ; preds = %14
  %21 = call i32 @sc_map_del_int(ptr noundef nonnull %1, i32 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 248, ptr noundef nonnull @__PRETTY_FUNCTION__.test_int) #7
  unreachable

25:                                               ; preds = %20
  %26 = call i32 @sc_map_get_int(ptr noundef nonnull %1, i32 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 251, ptr noundef nonnull @__PRETTY_FUNCTION__.test_int) #7
  unreachable

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

34:                                               ; preds = %30
  call void @__assert_fail(ptr noundef nonnull @.str.29, ptr noundef nonnull @.str.14, i32 noundef 253, ptr noundef nonnull @__PRETTY_FUNCTION__.test_int) #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 i32 @sc_map_put_int(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 0) #6
  %39 = call i32 @sc_map_put_int(ptr noundef nonnull %1, i32 noundef 1, i32 noundef 1) #6
  %40 = call i32 @sc_map_put_int(ptr noundef nonnull %1, i32 noundef 2, i32 noundef 2) #6
  %41 = call i32 @sc_map_put_int(ptr noundef nonnull %1, i32 noundef 3, i32 noundef 3) #6
  %42 = call i32 @sc_map_put_int(ptr noundef nonnull %1, i32 noundef 4, i32 noundef 4) #6
  %43 = call i32 @sc_map_put_int(ptr noundef nonnull %1, i32 noundef 5, i32 noundef 5) #6
  %44 = call i32 @sc_map_put_int(ptr noundef nonnull %1, i32 noundef 6, i32 noundef 6) #6
  %45 = call i32 @sc_map_put_int(ptr noundef nonnull %1, i32 noundef 7, i32 noundef 7) #6
  %46 = call i32 @sc_map_put_int(ptr noundef nonnull %1, i32 noundef 8, i32 noundef 8) #6
  %47 = call i32 @sc_map_put_int(ptr noundef nonnull %1, i32 noundef 9, i32 noundef 9) #6
  %48 = call i32 @sc_map_put_int(ptr noundef nonnull %1, i32 noundef 10, i32 noundef 10) #6
  %49 = call i32 @sc_map_put_int(ptr noundef nonnull %1, i32 noundef 11, i32 noundef 11) #6
  %50 = call i32 @sc_map_put_int(ptr noundef nonnull %1, i32 noundef 12, i32 noundef 12) #6
  %51 = call i32 @sc_map_put_int(ptr noundef nonnull %1, i32 noundef 13, i32 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 254, ptr noundef nonnull @__PRETTY_FUNCTION__.test_int) #7
  unreachable

53:                                               ; preds = %.preheader75
  %54 = add nuw nsw i32 %.06078, 1
  %exitcond.not = icmp eq i32 %54, 200
  br i1 %exitcond.not, label %55, label %.preheader75, !llvm.loop !14

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

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

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

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

79:                                               ; preds = %55
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.14, i32 noundef 276, ptr noundef nonnull @__PRETTY_FUNCTION__.test_int) #7
  unreachable

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

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

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

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

90:                                               ; preds = %86
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.14, i32 noundef 289, ptr noundef nonnull @__PRETTY_FUNCTION__.test_int) #7
  unreachable

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

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

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

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

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

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

114:                                              ; preds = %109
  call void @sc_map_term_int(ptr noundef nonnull %1) #6
  %115 = call zeroext i1 @sc_map_init_int(ptr noundef nonnull %1, i32 noundef 2, i32 noundef 0) #6
  br label %118

116:                                              ; preds = %127
  call void @sc_map_term_int(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)
  %117 = call zeroext i1 @sc_map_init_int(ptr noundef nonnull %1, i32 noundef 2, i32 noundef 0) #6
  br label %130

118:                                              ; preds = %114, %127
  %.06384 = phi i32 [ 0, %114 ], [ %128, %127 ]
  %119 = call i32 @sc_map_size_int(ptr noundef nonnull %1) #6
  %120 = icmp ult i32 %119, 16
  br i1 %120, label %121, label %123

121:                                              ; preds = %118
  %122 = call i32 @sc_map_put_int(ptr noundef nonnull %1, i32 noundef %.06384, i32 noundef 1) #6
  br label %127

123:                                              ; preds = %118
  %124 = call i32 @rand() #6
  %125 = srem i32 %124, %.06384
  %126 = call i32 @sc_map_del_int(ptr noundef nonnull %1, i32 noundef %125) #6
  br label %127

127:                                              ; preds = %121, %123
  %128 = add nuw nsw i32 %.06384, 1
  %exitcond93.not = icmp eq i32 %128, 1000000
  br i1 %exitcond93.not, label %116, label %118, !llvm.loop !16

129:                                              ; preds = %174
  call void @sc_map_term_int(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 = %116, %174
  %indvars.iv96 = phi i64 [ 0, %116 ], [ %indvars.iv.next97, %174 ]
  %.06286 = phi i32 [ 0, %116 ], [ %.4, %174 ]
  %131 = call i32 @sc_map_size_int(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.30, ptr noundef nonnull @.str.14, i32 noundef 330, ptr noundef nonnull @__PRETTY_FUNCTION__.test_int) #7
  unreachable

134:                                              ; preds = %130
  %135 = trunc nuw nsw i64 %indvars.iv96 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 %155

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

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

146:                                              ; preds = %.preheader
  %147 = trunc nuw nsw i64 %indvars.iv to i32
  %148 = call i32 @sc_map_get_int(ptr noundef nonnull %1, i32 noundef %147) #6
  %149 = sext i32 %148 to i64
  %150 = icmp eq i64 %145, %149
  br i1 %150, label %152, label %151

151:                                              ; preds = %146
  call void @__assert_fail(ptr noundef nonnull @.str.31, ptr noundef nonnull @.str.14, i32 noundef 337, ptr noundef nonnull @__PRETTY_FUNCTION__.test_int) #7
  unreachable

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

153:                                              ; preds = %140
  call void @__assert_fail(ptr noundef nonnull @.str.32, ptr noundef nonnull @.str.14, i32 noundef 341, ptr noundef nonnull @__PRETTY_FUNCTION__.test_int) #7
  unreachable

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

155:                                              ; preds = %154, %134
  %.1 = phi i32 [ 0, %154 ], [ %.06286, %134 ]
  %156 = call i32 @rand() #6
  %157 = srem i32 %156, 3
  switch i32 %157, label %174 [
    i32 0, label %158
    i32 1, label %166
    i32 2, label %172
  ]

158:                                              ; preds = %155
  %159 = mul nuw nsw i64 %indvars.iv96, 33
  %160 = trunc nuw nsw i64 %159 to i32
  %161 = call i32 @sc_map_put_int(ptr noundef nonnull %1, i32 noundef %136, i32 noundef %160) #6
  %162 = zext nneg i32 %136 to i64
  %163 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 %162
  %164 = load i64, ptr %163, align 8, !tbaa !17
  %.not70 = icmp eq i64 %164, 0
  %165 = zext i1 %.not70 to i32
  %.2 = add i32 %.1, %165
  store i64 %159, ptr %163, align 8, !tbaa !17
  br label %174

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

172:                                              ; preds = %155
  %173 = call i32 @sc_map_get_int(ptr noundef nonnull %1, i32 noundef %136) #6
  br label %174

174:                                              ; preds = %172, %166, %158, %155
  %.4 = phi i32 [ %.1, %155 ], [ %.3, %166 ], [ %.2, %158 ], [ %.1, %172 ]
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %exitcond99.not = icmp eq i64 %indvars.iv.next97, 10000000
  br i1 %exitcond99.not, label %129, label %130, !llvm.loop !20
}

declare zeroext i1 @sc_map_init_int(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

declare void @sc_map_term_int(ptr noundef) local_unnamed_addr #5

declare i32 @sc_map_del_int(ptr noundef, i32 noundef) local_unnamed_addr #5

declare i32 @sc_map_get_int(ptr noundef, i32 noundef) local_unnamed_addr #5

declare i32 @sc_map_put_int(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

declare void @sc_map_clear_int(ptr noundef) local_unnamed_addr #5

declare i32 @sc_map_size_int(ptr noundef) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { "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 #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_int", !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