; 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_64v = 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.65 = external hidden unnamed_addr constant [28 x i8], align 1
@__PRETTY_FUNCTION__.test_64v = external hidden unnamed_addr constant [20 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.72 = 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_64v() #4 {
  %1 = alloca %struct.sc_map_64v, 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 ptr], align 16
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  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_64v(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.65, ptr noundef @.str.14, i32 noundef 947, ptr noundef @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

21:                                               ; preds = %19
  call void @sc_map_term_64v(ptr noundef %1)
  %22 = call zeroext i1 @sc_map_init_64v(ptr noundef %1, i32 noundef 0, i32 noundef 0)
  br i1 %22, label %23, label %24

23:                                               ; preds = %21
  br label %25

24:                                               ; preds = %21
  call void @__assert_fail(ptr noundef @.str.65, ptr noundef @.str.14, i32 noundef 949, ptr noundef @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

25:                                               ; preds = %23
  %26 = call ptr @sc_map_put_64v(ptr noundef %1, i64 noundef 1, ptr noundef null)
  call void @sc_map_term_64v(ptr noundef %1)
  %27 = call zeroext i1 @sc_map_init_64v(ptr noundef %1, i32 noundef 0, i32 noundef 1)
  %28 = zext i1 %27 to i32
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %31

30:                                               ; preds = %25
  br label %32

31:                                               ; preds = %25
  call void @__assert_fail(ptr noundef @.str.66, ptr noundef @.str.14, i32 noundef 952, ptr noundef @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

32:                                               ; preds = %30
  %33 = call zeroext i1 @sc_map_init_64v(ptr noundef %1, i32 noundef 0, i32 noundef 99)
  %34 = zext i1 %33 to i32
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %37

36:                                               ; preds = %32
  br label %38

37:                                               ; preds = %32
  call void @__assert_fail(ptr noundef @.str.67, ptr noundef @.str.14, i32 noundef 953, ptr noundef @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

38:                                               ; preds = %36
  %39 = call zeroext i1 @sc_map_init_64v(ptr noundef %1, i32 noundef 16, i32 noundef 94)
  br i1 %39, label %40, label %41

40:                                               ; preds = %38
  br label %42

41:                                               ; preds = %38
  call void @__assert_fail(ptr noundef @.str.68, ptr noundef @.str.14, i32 noundef 955, ptr noundef @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

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

47:                                               ; preds = %42
  br label %49

48:                                               ; preds = %42
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.14, i32 noundef 958, ptr noundef @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

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

54:                                               ; preds = %49
  br label %56

55:                                               ; preds = %49
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.14, i32 noundef 961, ptr noundef @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

56:                                               ; preds = %54
  %57 = call ptr @sc_map_get_64v(ptr noundef %1, i64 noundef 0)
  %58 = getelementptr inbounds %struct.sc_map_64v, ptr %1, i32 0, i32 7
  %59 = load i8, ptr %58, align 2, !tbaa !5, !range !12, !noundef !13
  %60 = trunc i8 %59 to i1
  br i1 %60, label %62, label %61

61:                                               ; preds = %56
  br label %63

62:                                               ; preds = %56
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.14, i32 noundef 964, ptr noundef @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

63:                                               ; preds = %61
  %64 = call ptr @sc_map_put_64v(ptr noundef %1, i64 noundef 0, ptr noundef inttoptr (i64 500 to ptr))
  %65 = call ptr @sc_map_get_64v(ptr noundef %1, i64 noundef 0)
  %66 = icmp eq ptr %65, inttoptr (i64 500 to ptr)
  br i1 %66, label %67, label %68

67:                                               ; preds = %63
  br label %69

68:                                               ; preds = %63
  call void @__assert_fail(ptr noundef @.str.69, ptr noundef @.str.14, i32 noundef 966, ptr noundef @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

69:                                               ; preds = %67
  %70 = getelementptr inbounds %struct.sc_map_64v, ptr %1, i32 0, i32 7
  %71 = load i8, ptr %70, align 2, !tbaa !5, !range !12, !noundef !13
  %72 = trunc i8 %71 to i1
  br i1 %72, label %73, label %74

73:                                               ; preds = %69
  br label %75

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

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

76:                                               ; preds = %87, %75
  %77 = load i32, ptr %2, align 4, !tbaa !14
  %78 = icmp slt i32 %77, 14
  br i1 %78, label %80, label %79

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

80:                                               ; preds = %76
  %81 = load i32, ptr %2, align 4, !tbaa !14
  %82 = sext i32 %81 to i64
  %83 = load i32, ptr %2, align 4, !tbaa !14
  %84 = sext i32 %83 to i64
  %85 = inttoptr i64 %84 to ptr
  %86 = call ptr @sc_map_put_64v(ptr noundef %1, i64 noundef %82, ptr noundef %85)
  br label %87

87:                                               ; preds = %80
  %88 = load i32, ptr %2, align 4, !tbaa !14
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %2, align 4, !tbaa !14
  br label %76, !llvm.loop !15

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

91:                                               ; preds = %105, %90
  %92 = load i32, ptr %3, align 4, !tbaa !14
  %93 = icmp slt i32 %92, 200
  br i1 %93, label %95, label %94

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

95:                                               ; preds = %91
  %96 = load i32, ptr %3, align 4, !tbaa !14
  %97 = sext i32 %96 to i64
  %98 = call ptr @sc_map_del_64v(ptr noundef %1, i64 noundef %97)
  %99 = getelementptr inbounds %struct.sc_map_64v, ptr %1, i32 0, i32 7
  %100 = load i8, ptr %99, align 2, !tbaa !5, !range !12, !noundef !13
  %101 = trunc i8 %100 to i1
  br i1 %101, label %103, label %102

102:                                              ; preds = %95
  br label %104

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

104:                                              ; preds = %102
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %3, align 4, !tbaa !14
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %3, align 4, !tbaa !14
  br label %91, !llvm.loop !17

108:                                              ; preds = %94
  call void @sc_map_clear_64v(ptr noundef %1)
  call void @sc_map_clear_64v(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 %109

109:                                              ; preds = %120, %108
  %110 = load i32, ptr %4, align 4, !tbaa !14
  %111 = icmp slt i32 %110, 5
  br i1 %111, label %113, label %112

112:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %123

113:                                              ; preds = %109
  %114 = load i32, ptr %4, align 4, !tbaa !14
  %115 = sext i32 %114 to i64
  %116 = load i32, ptr %4, align 4, !tbaa !14
  %117 = sext i32 %116 to i64
  %118 = inttoptr i64 %117 to ptr
  %119 = call ptr @sc_map_put_64v(ptr noundef %1, i64 noundef %115, ptr noundef %118)
  br label %120

120:                                              ; preds = %113
  %121 = load i32, ptr %4, align 4, !tbaa !14
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %4, align 4, !tbaa !14
  br label %109, !llvm.loop !18

123:                                              ; preds = %112
  %124 = call ptr @sc_map_put_64v(ptr noundef %1, i64 noundef 31, ptr noundef inttoptr (i64 15 to ptr))
  %125 = call ptr @sc_map_put_64v(ptr noundef %1, i64 noundef 15, ptr noundef inttoptr (i64 15 to ptr))
  %126 = call ptr @sc_map_put_64v(ptr noundef %1, i64 noundef 46, ptr noundef inttoptr (i64 15 to ptr))
  %127 = call ptr @sc_map_get_64v(ptr noundef %1, i64 noundef 19)
  %128 = getelementptr inbounds %struct.sc_map_64v, ptr %1, i32 0, i32 7
  %129 = load i8, ptr %128, align 2, !tbaa !5, !range !12, !noundef !13
  %130 = trunc i8 %129 to i1
  br i1 %130, label %132, label %131

131:                                              ; preds = %123
  br label %133

132:                                              ; preds = %123
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.14, i32 noundef 989, ptr noundef @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

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

134:                                              ; preds = %148, %133
  %135 = load i32, ptr %5, align 4, !tbaa !14
  %136 = icmp slt i32 %135, 5
  br i1 %136, label %138, label %137

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

138:                                              ; preds = %134
  %139 = load i32, ptr %5, align 4, !tbaa !14
  %140 = mul nsw i32 5, %139
  %141 = load i32, ptr %5, align 4, !tbaa !14
  %142 = add nsw i32 %140, %141
  %143 = sext i32 %142 to i64
  %144 = load i32, ptr %5, align 4, !tbaa !14
  %145 = sext i32 %144 to i64
  %146 = inttoptr i64 %145 to ptr
  %147 = call ptr @sc_map_put_64v(ptr noundef %1, i64 noundef %143, ptr noundef %146)
  br label %148

148:                                              ; preds = %138
  %149 = load i32, ptr %5, align 4, !tbaa !14
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %5, align 4, !tbaa !14
  br label %134, !llvm.loop !19

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

156:                                              ; preds = %151
  br label %158

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

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

163:                                              ; preds = %158
  br label %165

164:                                              ; preds = %158
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 999, ptr noundef @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

165:                                              ; preds = %163
  %166 = call ptr @sc_map_del_64v(ptr noundef %1, i64 noundef 15)
  %167 = getelementptr inbounds %struct.sc_map_64v, ptr %1, i32 0, i32 7
  %168 = load i8, ptr %167, align 2, !tbaa !5, !range !12, !noundef !13
  %169 = trunc i8 %168 to i1
  br i1 %169, label %170, label %171

170:                                              ; preds = %165
  br label %172

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

172:                                              ; preds = %170
  call void @sc_map_clear_64v(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 %173

173:                                              ; preds = %185, %172
  %174 = load i32, ptr %6, align 4, !tbaa !14
  %175 = icmp slt i32 %174, 4
  br i1 %175, label %177, label %176

176:                                              ; preds = %173
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %188

177:                                              ; preds = %173
  %178 = load i32, ptr %6, align 4, !tbaa !14
  %179 = mul nsw i32 16, %178
  %180 = sext i32 %179 to i64
  %181 = load i32, ptr %6, align 4, !tbaa !14
  %182 = sext i32 %181 to i64
  %183 = inttoptr i64 %182 to ptr
  %184 = call ptr @sc_map_put_64v(ptr noundef %1, i64 noundef %180, ptr noundef %183)
  br label %185

185:                                              ; preds = %177
  %186 = load i32, ptr %6, align 4, !tbaa !14
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %6, align 4, !tbaa !14
  br label %173, !llvm.loop !20

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

189:                                              ; preds = %201, %188
  %190 = load i32, ptr %7, align 4, !tbaa !14
  %191 = icmp slt i32 %190, 4
  br i1 %191, label %193, label %192

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

193:                                              ; preds = %189
  %194 = load i32, ptr %7, align 4, !tbaa !14
  %195 = mul nsw i32 1024, %194
  %196 = sext i32 %195 to i64
  %197 = load i32, ptr %7, align 4, !tbaa !14
  %198 = sext i32 %197 to i64
  %199 = inttoptr i64 %198 to ptr
  %200 = call ptr @sc_map_put_64v(ptr noundef %1, i64 noundef %196, ptr noundef %199)
  br label %201

201:                                              ; preds = %193
  %202 = load i32, ptr %7, align 4, !tbaa !14
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %7, align 4, !tbaa !14
  br label %189, !llvm.loop !21

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

205:                                              ; preds = %217, %204
  %206 = load i32, ptr %8, align 4, !tbaa !14
  %207 = icmp slt i32 %206, 4
  br i1 %207, label %209, label %208

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

209:                                              ; preds = %205
  %210 = load i32, ptr %8, align 4, !tbaa !14
  %211 = mul nsw i32 512, %210
  %212 = sext i32 %211 to i64
  %213 = load i32, ptr %8, align 4, !tbaa !14
  %214 = sext i32 %213 to i64
  %215 = inttoptr i64 %214 to ptr
  %216 = call ptr @sc_map_put_64v(ptr noundef %1, i64 noundef %212, ptr noundef %215)
  br label %217

217:                                              ; preds = %209
  %218 = load i32, ptr %8, align 4, !tbaa !14
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %8, align 4, !tbaa !14
  br label %205, !llvm.loop !22

220:                                              ; preds = %208
  %221 = call ptr @sc_map_del_64v(ptr noundef %1, i64 noundef 512)
  %222 = getelementptr inbounds %struct.sc_map_64v, ptr %1, i32 0, i32 7
  %223 = load i8, ptr %222, align 2, !tbaa !5, !range !12, !noundef !13
  %224 = trunc i8 %223 to i1
  br i1 %224, label %225, label %226

225:                                              ; preds = %220
  br label %227

226:                                              ; preds = %220
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 1017, ptr noundef @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

227:                                              ; preds = %225
  %228 = call ptr @sc_map_del_64v(ptr noundef %1, i64 noundef 1024)
  %229 = getelementptr inbounds %struct.sc_map_64v, ptr %1, i32 0, i32 7
  %230 = load i8, ptr %229, align 2, !tbaa !5, !range !12, !noundef !13
  %231 = trunc i8 %230 to i1
  br i1 %231, label %232, label %233

232:                                              ; preds = %227
  br label %234

233:                                              ; preds = %227
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 1020, ptr noundef @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

234:                                              ; preds = %232
  %235 = call ptr @sc_map_del_64v(ptr noundef %1, i64 noundef 48)
  %236 = getelementptr inbounds %struct.sc_map_64v, ptr %1, i32 0, i32 7
  %237 = load i8, ptr %236, align 2, !tbaa !5, !range !12, !noundef !13
  %238 = trunc i8 %237 to i1
  br i1 %238, label %239, label %240

239:                                              ; preds = %234
  br label %241

240:                                              ; preds = %234
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.14, i32 noundef 1023, ptr noundef @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

241:                                              ; preds = %239
  call void @sc_map_term_64v(ptr noundef %1)
  %242 = call zeroext i1 @sc_map_init_64v(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 %243

243:                                              ; preds = %261, %241
  %244 = load i32, ptr %9, align 4, !tbaa !14
  %245 = icmp slt i32 %244, 1000000
  br i1 %245, label %247, label %246

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

247:                                              ; preds = %243
  %248 = call i32 @sc_map_size_64v(ptr noundef %1)
  %249 = icmp ult i32 %248, 16
  br i1 %249, label %250, label %254

250:                                              ; preds = %247
  %251 = load i32, ptr %9, align 4, !tbaa !14
  %252 = sext i32 %251 to i64
  %253 = call ptr @sc_map_put_64v(ptr noundef %1, i64 noundef %252, ptr noundef inttoptr (i64 1 to ptr))
  br label %260

254:                                              ; preds = %247
  %255 = call i32 @rand() #6
  %256 = load i32, ptr %9, align 4, !tbaa !14
  %257 = srem i32 %255, %256
  %258 = sext i32 %257 to i64
  %259 = call ptr @sc_map_del_64v(ptr noundef %1, i64 noundef %258)
  br label %260

260:                                              ; preds = %254, %250
  br label %261

261:                                              ; preds = %260
  %262 = load i32, ptr %9, align 4, !tbaa !14
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %9, align 4, !tbaa !14
  br label %243, !llvm.loop !23

264:                                              ; preds = %246
  call void @sc_map_term_64v(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
  %265 = call zeroext i1 @sc_map_init_64v(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 %266

266:                                              ; preds = %400, %264
  %267 = load i32, ptr %13, align 4, !tbaa !14
  %268 = icmp slt i32 %267, 10000000
  br i1 %268, label %270, label %269

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

270:                                              ; preds = %266
  %271 = call i32 @sc_map_size_64v(ptr noundef %1)
  %272 = load i32, ptr %11, align 4, !tbaa !14
  %273 = icmp eq i32 %271, %272
  br i1 %273, label %274, label %275

274:                                              ; preds = %270
  br label %276

275:                                              ; preds = %270
  call void @__assert_fail(ptr noundef @.str.70, ptr noundef @.str.14, i32 noundef 1043, ptr noundef @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

276:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %277 = load i32, ptr %13, align 4, !tbaa !14
  %278 = srem i32 %277, 10000
  store i32 %278, ptr %15, align 4, !tbaa !14
  %279 = call i32 @rand() #6
  %280 = srem i32 %279, 6719
  %281 = icmp eq i32 %280, 0
  br i1 %281, label %282, label %319

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

283:                                              ; preds = %306, %282
  %284 = load i32, ptr %16, align 4, !tbaa !14
  %285 = icmp slt i32 %284, 10000
  br i1 %285, label %287, label %286

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

287:                                              ; preds = %283
  %288 = load i32, ptr %16, align 4, !tbaa !14
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds [10000 x ptr], ptr %10, i64 0, i64 %289
  %291 = load ptr, ptr %290, align 8, !tbaa !24
  %292 = icmp ne ptr %291, null
  br i1 %292, label %293, label %305

293:                                              ; preds = %287
  %294 = load i32, ptr %16, align 4, !tbaa !14
  %295 = sext i32 %294 to i64
  %296 = call ptr @sc_map_get_64v(ptr noundef %1, i64 noundef %295)
  %297 = load i32, ptr %16, align 4, !tbaa !14
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds [10000 x ptr], ptr %10, i64 0, i64 %298
  %300 = load ptr, ptr %299, align 8, !tbaa !24
  %301 = icmp eq ptr %296, %300
  br i1 %301, label %302, label %303

302:                                              ; preds = %293
  br label %304

303:                                              ; preds = %293
  call void @__assert_fail(ptr noundef @.str.71, ptr noundef @.str.14, i32 noundef 1050, ptr noundef @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

304:                                              ; preds = %302
  br label %305

305:                                              ; preds = %304, %287
  br label %306

306:                                              ; preds = %305
  %307 = load i32, ptr %16, align 4, !tbaa !14
  %308 = add nsw i32 %307, 1
  store i32 %308, ptr %16, align 4, !tbaa !14
  br label %283, !llvm.loop !25

309:                                              ; preds = %286
  call void @sc_map_term_64v(ptr noundef %1)
  %310 = load i32, ptr %15, align 4, !tbaa !14
  %311 = load i32, ptr %13, align 4, !tbaa !14
  %312 = srem i32 %311, 70
  %313 = add nsw i32 25, %312
  %314 = call zeroext i1 @sc_map_init_64v(ptr noundef %1, i32 noundef %310, i32 noundef %313)
  br i1 %314, label %315, label %316

315:                                              ; preds = %309
  br label %317

316:                                              ; preds = %309
  call void @__assert_fail(ptr noundef @.str.72, ptr noundef @.str.14, i32 noundef 1054, ptr noundef @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

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

319:                                              ; preds = %317, %276
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %320 = call i32 @rand() #6
  %321 = srem i32 %320, 3
  store i32 %321, ptr %17, align 4, !tbaa !14
  %322 = load i32, ptr %17, align 4, !tbaa !14
  switch i32 %322, label %399 [
    i32 0, label %323
    i32 1, label %356
    i32 2, label %380
  ]

323:                                              ; preds = %319
  %324 = load i32, ptr %15, align 4, !tbaa !14
  %325 = sext i32 %324 to i64
  %326 = load i32, ptr %13, align 4, !tbaa !14
  %327 = mul nsw i32 %326, 33
  %328 = sext i32 %327 to i64
  %329 = inttoptr i64 %328 to ptr
  %330 = call ptr @sc_map_put_64v(ptr noundef %1, i64 noundef %325, ptr noundef %329)
  store ptr %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 ptr], ptr %10, i64 0, i64 %332
  %334 = load ptr, ptr %333, align 8, !tbaa !24
  %335 = icmp ne ptr %334, null
  br i1 %335, label %336, label %345

336:                                              ; preds = %323
  %337 = load i32, ptr %15, align 4, !tbaa !14
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds [10000 x ptr], ptr %10, i64 0, i64 %338
  %340 = load ptr, ptr %339, align 8, !tbaa !24
  store ptr %340, ptr %12, align 8, !tbaa !24
  %341 = icmp ne ptr %340, null
  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 1065, ptr noundef @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

344:                                              ; preds = %342
  br label %348

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

348:                                              ; preds = %345, %344
  %349 = load i32, ptr %13, align 4, !tbaa !14
  %350 = mul nsw i32 %349, 33
  %351 = sext i32 %350 to i64
  %352 = inttoptr i64 %351 to ptr
  %353 = load i32, ptr %15, align 4, !tbaa !14
  %354 = sext i32 %353 to i64
  %355 = getelementptr inbounds [10000 x ptr], ptr %10, i64 0, i64 %354
  store ptr %352, ptr %355, align 8, !tbaa !24
  br label %399

356:                                              ; preds = %319
  %357 = load i32, ptr %15, align 4, !tbaa !14
  %358 = sext i32 %357 to i64
  %359 = call ptr @sc_map_del_64v(ptr noundef %1, i64 noundef %358)
  store ptr %359, ptr %12, align 8, !tbaa !24
  %360 = load i32, ptr %15, align 4, !tbaa !14
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds [10000 x ptr], ptr %10, i64 0, i64 %361
  %363 = load ptr, ptr %362, align 8, !tbaa !24
  %364 = icmp ne ptr %363, null
  br i1 %364, label %365, label %376

365:                                              ; preds = %356
  %366 = load i32, ptr %15, align 4, !tbaa !14
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds [10000 x ptr], ptr %10, i64 0, i64 %367
  %369 = load ptr, ptr %368, align 8, !tbaa !24
  store ptr %369, ptr %12, align 8, !tbaa !24
  %370 = icmp ne ptr %369, null
  br i1 %370, label %371, label %372

371:                                              ; preds = %365
  br label %373

372:                                              ; preds = %365
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.14, i32 noundef 1074, ptr noundef @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

373:                                              ; preds = %371
  %374 = load i32, ptr %11, align 4, !tbaa !14
  %375 = add i32 %374, -1
  store i32 %375, ptr %11, align 4, !tbaa !14
  br label %376

376:                                              ; preds = %373, %356
  %377 = load i32, ptr %15, align 4, !tbaa !14
  %378 = sext i32 %377 to i64
  %379 = getelementptr inbounds [10000 x ptr], ptr %10, i64 0, i64 %378
  store ptr null, ptr %379, align 8, !tbaa !24
  br label %399

380:                                              ; preds = %319
  %381 = load i32, ptr %15, align 4, !tbaa !14
  %382 = sext i32 %381 to i64
  %383 = call ptr @sc_map_get_64v(ptr noundef %1, i64 noundef %382)
  store ptr %383, ptr %12, align 8, !tbaa !24
  %384 = load i32, ptr %15, align 4, !tbaa !14
  %385 = sext i32 %384 to i64
  %386 = getelementptr inbounds [10000 x ptr], ptr %10, i64 0, i64 %385
  %387 = load ptr, ptr %386, align 8, !tbaa !24
  %388 = icmp ne ptr %387, null
  br i1 %388, label %389, label %398

389:                                              ; preds = %380
  %390 = load i32, ptr %15, align 4, !tbaa !14
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds [10000 x ptr], ptr %10, i64 0, i64 %391
  %393 = load ptr, ptr %392, align 8, !tbaa !24
  store ptr %393, ptr %12, align 8, !tbaa !24
  %394 = icmp ne ptr %393, null
  br i1 %394, label %395, label %396

395:                                              ; preds = %389
  br label %397

396:                                              ; preds = %389
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str.14, i32 noundef 1082, ptr noundef @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

397:                                              ; preds = %395
  br label %398

398:                                              ; preds = %397, %380
  br label %399

399:                                              ; preds = %398, %376, %348, %319
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %400

400:                                              ; preds = %399
  %401 = load i32, ptr %13, align 4, !tbaa !14
  %402 = add nsw i32 %401, 1
  store i32 %402, ptr %13, align 4, !tbaa !14
  br label %266, !llvm.loop !26

403:                                              ; preds = %269
  call void @sc_map_term_64v(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_64v(ptr noundef, i32 noundef, i32 noundef) #5

declare void @sc_map_term_64v(ptr noundef) #5

declare ptr @sc_map_put_64v(ptr noundef, i64 noundef, ptr noundef) #5

declare ptr @sc_map_del_64v(ptr noundef, i64 noundef) #5

declare ptr @sc_map_get_64v(ptr noundef, i64 noundef) #5

declare void @sc_map_clear_64v(ptr noundef) #5

declare i32 @sc_map_size_64v(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_64v", !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 = !{!7, !7, i64 0}
!25 = distinct !{!25, !16}
!26 = distinct !{!26, !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_64v = 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.65 = external hidden unnamed_addr constant [28 x i8], align 1
@__PRETTY_FUNCTION__.test_64v = external hidden unnamed_addr constant [20 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.72 = 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_64v() local_unnamed_addr #4 {
  %1 = alloca %struct.sc_map_64v, align 8
  %2 = alloca [10000 x ptr], 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_64v(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.65, ptr noundef nonnull @.str.14, i32 noundef 947, ptr noundef nonnull @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

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

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

8:                                                ; preds = %5
  %9 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 1, ptr noundef null) #6
  call void @sc_map_term_64v(ptr noundef nonnull %1) #6
  %10 = call zeroext i1 @sc_map_init_64v(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 1) #6
  br i1 %10, label %11, label %12

11:                                               ; preds = %8
  call void @__assert_fail(ptr noundef nonnull @.str.66, ptr noundef nonnull @.str.14, i32 noundef 952, ptr noundef nonnull @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

12:                                               ; preds = %8
  %13 = call zeroext i1 @sc_map_init_64v(ptr noundef nonnull %1, i32 noundef 0, i32 noundef 99) #6
  br i1 %13, label %14, label %15

14:                                               ; preds = %12
  call void @__assert_fail(ptr noundef nonnull @.str.67, ptr noundef nonnull @.str.14, i32 noundef 953, ptr noundef nonnull @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

15:                                               ; preds = %12
  %16 = call zeroext i1 @sc_map_init_64v(ptr noundef nonnull %1, i32 noundef 16, i32 noundef 94) #6
  br i1 %16, label %18, label %17

17:                                               ; preds = %15
  call void @__assert_fail(ptr noundef nonnull @.str.68, ptr noundef nonnull @.str.14, i32 noundef 955, ptr noundef nonnull @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

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

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

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

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

29:                                               ; preds = %24
  %30 = call ptr @sc_map_get_64v(ptr noundef nonnull %1, i64 noundef 0) #6
  %31 = load i8, ptr %20, align 2, !tbaa !5, !range !12, !noundef !13
  %32 = trunc nuw i8 %31 to i1
  br i1 %32, label %33, label %34

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

34:                                               ; preds = %29
  %35 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 0, ptr noundef nonnull inttoptr (i64 500 to ptr)) #6
  %36 = call ptr @sc_map_get_64v(ptr noundef nonnull %1, i64 noundef 0) #6
  %37 = icmp eq ptr %36, inttoptr (i64 500 to ptr)
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  call void @__assert_fail(ptr noundef nonnull @.str.69, ptr noundef nonnull @.str.14, i32 noundef 966, ptr noundef nonnull @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

39:                                               ; preds = %34
  %40 = load i8, ptr %20, align 2, !tbaa !5, !range !12, !noundef !13
  %41 = trunc nuw i8 %40 to i1
  br i1 %41, label %.preheader76.preheader, label %56

.preheader76.preheader:                           ; preds = %39
  %42 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 0, ptr noundef null) #6
  %43 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 1, ptr noundef nonnull inttoptr (i64 1 to ptr)) #6
  %44 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 2, ptr noundef nonnull inttoptr (i64 2 to ptr)) #6
  %45 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 3, ptr noundef nonnull inttoptr (i64 3 to ptr)) #6
  %46 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 4, ptr noundef nonnull inttoptr (i64 4 to ptr)) #6
  %47 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 5, ptr noundef nonnull inttoptr (i64 5 to ptr)) #6
  %48 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 6, ptr noundef nonnull inttoptr (i64 6 to ptr)) #6
  %49 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 7, ptr noundef nonnull inttoptr (i64 7 to ptr)) #6
  %50 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 8, ptr noundef nonnull inttoptr (i64 8 to ptr)) #6
  %51 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 9, ptr noundef nonnull inttoptr (i64 9 to ptr)) #6
  %52 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 10, ptr noundef nonnull inttoptr (i64 10 to ptr)) #6
  %53 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 11, ptr noundef nonnull inttoptr (i64 11 to ptr)) #6
  %54 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 12, ptr noundef nonnull inttoptr (i64 12 to ptr)) #6
  %55 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 13, ptr noundef nonnull inttoptr (i64 13 to ptr)) #6
  br label %.preheader75

56:                                               ; preds = %39
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.14, i32 noundef 967, ptr noundef nonnull @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

57:                                               ; 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 %58, label %.preheader75, !llvm.loop !14

58:                                               ; preds = %57
  call void @sc_map_clear_64v(ptr noundef nonnull %1) #6
  call void @sc_map_clear_64v(ptr noundef nonnull %1) #6
  %59 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 0, ptr noundef null) #6
  %60 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 1, ptr noundef nonnull inttoptr (i64 1 to ptr)) #6
  %61 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 2, ptr noundef nonnull inttoptr (i64 2 to ptr)) #6
  %62 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 3, ptr noundef nonnull inttoptr (i64 3 to ptr)) #6
  %63 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 4, ptr noundef nonnull inttoptr (i64 4 to ptr)) #6
  %64 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 31, ptr noundef nonnull inttoptr (i64 15 to ptr)) #6
  %65 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 15, ptr noundef nonnull inttoptr (i64 15 to ptr)) #6
  %66 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 46, ptr noundef nonnull inttoptr (i64 15 to ptr)) #6
  %67 = call ptr @sc_map_get_64v(ptr noundef nonnull %1, i64 noundef 19) #6
  %68 = load i8, ptr %20, align 2, !tbaa !5, !range !12, !noundef !13
  %69 = trunc nuw i8 %68 to i1
  br i1 %69, label %82, label %.preheader74.preheader

.preheader75:                                     ; preds = %.preheader76.preheader, %57
  %indvars.iv = phi i64 [ 100, %.preheader76.preheader ], [ %indvars.iv.next, %57 ]
  %70 = call ptr @sc_map_del_64v(ptr noundef nonnull %1, i64 noundef %indvars.iv) #6
  %71 = load i8, ptr %20, align 2, !tbaa !5, !range !12, !noundef !13
  %72 = trunc nuw i8 %71 to i1
  br i1 %72, label %73, label %57

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

.preheader74.preheader:                           ; preds = %58
  %74 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 0, ptr noundef null) #6
  %75 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 6, ptr noundef nonnull inttoptr (i64 1 to ptr)) #6
  %76 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 12, ptr noundef nonnull inttoptr (i64 2 to ptr)) #6
  %77 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 18, ptr noundef nonnull inttoptr (i64 3 to ptr)) #6
  %78 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 24, ptr noundef nonnull inttoptr (i64 4 to ptr)) #6
  %79 = call ptr @sc_map_del_64v(ptr noundef nonnull %1, i64 noundef 4) #6
  %80 = load i8, ptr %20, align 2, !tbaa !5, !range !12, !noundef !13
  %81 = trunc nuw i8 %80 to i1
  br i1 %81, label %84, label %83

82:                                               ; preds = %58
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.14, i32 noundef 989, ptr noundef nonnull @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

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

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

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

89:                                               ; preds = %84
  %90 = call ptr @sc_map_del_64v(ptr noundef nonnull %1, i64 noundef 15) #6
  %91 = load i8, ptr %20, align 2, !tbaa !5, !range !12, !noundef !13
  %92 = trunc nuw i8 %91 to i1
  br i1 %92, label %.preheader73.preheader, label %93

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

.preheader73.preheader:                           ; preds = %89
  call void @sc_map_clear_64v(ptr noundef nonnull %1) #6
  %94 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 16, ptr noundef nonnull inttoptr (i64 1 to ptr)) #6
  %95 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 32, ptr noundef nonnull inttoptr (i64 2 to ptr)) #6
  %96 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 48, ptr noundef nonnull inttoptr (i64 3 to ptr)) #6
  %97 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 1024, ptr noundef nonnull inttoptr (i64 1 to ptr)) #6
  %98 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 2048, ptr noundef nonnull inttoptr (i64 2 to ptr)) #6
  %99 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 3072, ptr noundef nonnull inttoptr (i64 3 to ptr)) #6
  %100 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 512, ptr noundef nonnull inttoptr (i64 1 to ptr)) #6
  %101 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 1024, ptr noundef nonnull inttoptr (i64 2 to ptr)) #6
  %102 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef 1536, ptr noundef nonnull inttoptr (i64 3 to ptr)) #6
  %103 = call ptr @sc_map_del_64v(ptr noundef nonnull %1, i64 noundef 512) #6
  %104 = load i8, ptr %20, align 2, !tbaa !5, !range !12, !noundef !13
  %105 = trunc nuw i8 %104 to i1
  br i1 %105, label %107, label %106

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

107:                                              ; preds = %.preheader73.preheader
  %108 = call ptr @sc_map_del_64v(ptr noundef nonnull %1, i64 noundef 1024) #6
  %109 = load i8, ptr %20, align 2, !tbaa !5, !range !12, !noundef !13
  %110 = trunc nuw i8 %109 to i1
  br i1 %110, label %112, label %111

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

112:                                              ; preds = %107
  %113 = call ptr @sc_map_del_64v(ptr noundef nonnull %1, i64 noundef 48) #6
  %114 = load i8, ptr %20, align 2, !tbaa !5, !range !12, !noundef !13
  %115 = trunc nuw i8 %114 to i1
  br i1 %115, label %117, label %116

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

117:                                              ; preds = %112
  call void @sc_map_term_64v(ptr noundef nonnull %1) #6
  %118 = call zeroext i1 @sc_map_init_64v(ptr noundef nonnull %1, i32 noundef 2, i32 noundef 0) #6
  br label %121

119:                                              ; preds = %132
  call void @sc_map_term_64v(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)
  %120 = call zeroext i1 @sc_map_init_64v(ptr noundef nonnull %1, i32 noundef 2, i32 noundef 0) #6
  br label %134

121:                                              ; preds = %117, %132
  %indvars.iv110 = phi i64 [ 0, %117 ], [ %indvars.iv.next111, %132 ]
  %122 = call i32 @sc_map_size_64v(ptr noundef nonnull %1) #6
  %123 = icmp ult i32 %122, 16
  br i1 %123, label %124, label %126

124:                                              ; preds = %121
  %125 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef %indvars.iv110, ptr noundef nonnull inttoptr (i64 1 to ptr)) #6
  br label %132

126:                                              ; preds = %121
  %127 = call i32 @rand() #6
  %128 = trunc nuw nsw i64 %indvars.iv110 to i32
  %129 = srem i32 %127, %128
  %130 = sext i32 %129 to i64
  %131 = call ptr @sc_map_del_64v(ptr noundef nonnull %1, i64 noundef %130) #6
  br label %132

132:                                              ; preds = %124, %126
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %exitcond113.not = icmp eq i64 %indvars.iv.next111, 1000000
  br i1 %exitcond113.not, label %119, label %121, !llvm.loop !16

133:                                              ; preds = %177
  call void @sc_map_term_64v(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

134:                                              ; preds = %119, %177
  %indvars.iv118 = phi i64 [ 0, %119 ], [ %indvars.iv.next119, %177 ]
  %.06286 = phi i32 [ 0, %119 ], [ %.4, %177 ]
  %135 = call i32 @sc_map_size_64v(ptr noundef nonnull %1) #6
  %136 = icmp eq i32 %135, %.06286
  br i1 %136, label %138, label %137

137:                                              ; preds = %134
  call void @__assert_fail(ptr noundef nonnull @.str.70, ptr noundef nonnull @.str.14, i32 noundef 1043, ptr noundef nonnull @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

138:                                              ; preds = %134
  %139 = trunc nuw nsw i64 %indvars.iv118 to i32
  %140 = urem i32 %139, 10000
  %141 = call i32 @rand() #6
  %142 = srem i32 %141, 6719
  %143 = icmp eq i32 %142, 0
  br i1 %143, label %.preheader, label %157

144:                                              ; preds = %154
  call void @sc_map_term_64v(ptr noundef nonnull %1) #6
  %145 = urem i32 %139, 70
  %146 = add nuw nsw i32 %145, 25
  %147 = call zeroext i1 @sc_map_init_64v(ptr noundef nonnull %1, i32 noundef %140, i32 noundef %146) #6
  br i1 %147, label %156, label %155

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

150:                                              ; preds = %.preheader
  %151 = call ptr @sc_map_get_64v(ptr noundef nonnull %1, i64 noundef %indvars.iv114) #6
  %152 = icmp eq ptr %151, %149
  br i1 %152, label %154, label %153

153:                                              ; preds = %150
  call void @__assert_fail(ptr noundef nonnull @.str.71, ptr noundef nonnull @.str.14, i32 noundef 1050, ptr noundef nonnull @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

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

155:                                              ; preds = %144
  call void @__assert_fail(ptr noundef nonnull @.str.72, ptr noundef nonnull @.str.14, i32 noundef 1054, ptr noundef nonnull @__PRETTY_FUNCTION__.test_64v) #7
  unreachable

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

157:                                              ; preds = %156, %138
  %.1 = phi i32 [ 0, %156 ], [ %.06286, %138 ]
  %158 = call i32 @rand() #6
  %159 = srem i32 %158, 3
  switch i32 %159, label %177 [
    i32 0, label %160
    i32 1, label %168
    i32 2, label %174
  ]

160:                                              ; preds = %157
  %161 = zext nneg i32 %140 to i64
  %162 = mul nuw nsw i64 %indvars.iv118, 33
  %163 = inttoptr i64 %162 to ptr
  %164 = call ptr @sc_map_put_64v(ptr noundef nonnull %1, i64 noundef %161, ptr noundef %163) #6
  %165 = getelementptr inbounds [10000 x ptr], ptr %2, i64 0, i64 %161
  %166 = load ptr, ptr %165, align 8, !tbaa !17
  %.not70 = icmp eq ptr %166, null
  %167 = zext i1 %.not70 to i32
  %.2 = add i32 %.1, %167
  store ptr %163, ptr %165, align 8, !tbaa !17
  br label %177

168:                                              ; preds = %157
  %169 = zext nneg i32 %140 to i64
  %170 = call ptr @sc_map_del_64v(ptr noundef nonnull %1, i64 noundef %169) #6
  %171 = getelementptr inbounds [10000 x ptr], ptr %2, i64 0, i64 %169
  %172 = load ptr, ptr %171, align 8, !tbaa !17
  %.not69 = icmp ne ptr %172, null
  %173 = sext i1 %.not69 to i32
  %.3 = add i32 %.1, %173
  store ptr null, ptr %171, align 8, !tbaa !17
  br label %177

174:                                              ; preds = %157
  %175 = zext nneg i32 %140 to i64
  %176 = call ptr @sc_map_get_64v(ptr noundef nonnull %1, i64 noundef %175) #6
  br label %177

177:                                              ; preds = %174, %168, %160, %157
  %.4 = phi i32 [ %.1, %157 ], [ %.3, %168 ], [ %.2, %160 ], [ %.1, %174 ]
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %exitcond121.not = icmp eq i64 %indvars.iv.next119, 10000000
  br i1 %exitcond121.not, label %133, label %134, !llvm.loop !19
}

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

declare void @sc_map_term_64v(ptr noundef) local_unnamed_addr #5

declare ptr @sc_map_put_64v(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #5

declare ptr @sc_map_del_64v(ptr noundef, i64 noundef) local_unnamed_addr #5

declare ptr @sc_map_get_64v(ptr noundef, i64 noundef) local_unnamed_addr #5

declare void @sc_map_clear_64v(ptr noundef) local_unnamed_addr #5

declare i32 @sc_map_size_64v(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_64v", !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 = !{!7, !7, i64 0}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}


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