; 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_64s = type { ptr, i32, i32, i32, i32, i8, i8, i8 }
%struct.sc_map_64v = type { ptr, i32, i32, i32, i32, i8, i8, i8 }
%struct.sc_map_str = type { ptr, i32, i32, i32, i32, i8, i8, i8 }
%struct.sc_map_sv = type { ptr, i32, i32, i32, i32, i8, i8, i8 }
%struct.sc_map_s64 = type { ptr, i32, i32, i32, i32, i8, i8, i8 }

@.str.14 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [32 x i8], align 1
@__PRETTY_FUNCTION__.test4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.160 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.162 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.163 = external hidden unnamed_addr constant [31 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

declare zeroext i1 @sc_map_init_str(ptr noundef, i32 noundef, i32 noundef) #1

declare ptr @sc_map_put_str(ptr noundef, ptr noundef, ptr noundef) #1

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

declare void @sc_map_term_str(ptr 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() #3

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

declare void @sc_map_term_64v(ptr noundef) #1

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

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

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

declare void @sc_map_clear_64v(ptr noundef) #1

declare i32 @sc_map_size_64v(ptr noundef) #1

declare zeroext i1 @sc_map_init_64s(ptr noundef, i32 noundef, i32 noundef) #1

declare void @sc_map_term_64s(ptr noundef) #1

declare ptr @sc_map_del_64s(ptr noundef, i64 noundef) #1

declare ptr @sc_map_get_64s(ptr noundef, i64 noundef) #1

declare ptr @sc_map_put_64s(ptr noundef, i64 noundef, ptr noundef) #1

declare void @sc_map_clear_64s(ptr noundef) #1

declare i32 @sc_map_size_64s(ptr noundef) #1

declare ptr @sc_map_del_str(ptr noundef, ptr noundef) #1

declare void @sc_map_clear_str(ptr noundef) #1

declare ptr @sc_map_get_str(ptr noundef, ptr noundef) #1

declare i32 @sc_map_size_str(ptr noundef) #1

declare zeroext i1 @sc_map_init_sv(ptr noundef, i32 noundef, i32 noundef) #1

declare void @sc_map_term_sv(ptr noundef) #1

declare ptr @sc_map_del_sv(ptr noundef, ptr noundef) #1

declare ptr @sc_map_put_sv(ptr noundef, ptr noundef, ptr noundef) #1

declare void @sc_map_clear_sv(ptr noundef) #1

declare ptr @sc_map_get_sv(ptr noundef, ptr noundef) #1

declare i32 @sc_map_size_sv(ptr noundef) #1

declare zeroext i1 @sc_map_init_s64(ptr noundef, i32 noundef, i32 noundef) #1

declare void @sc_map_term_s64(ptr noundef) #1

declare i64 @sc_map_del_s64(ptr noundef, ptr noundef) #1

declare i64 @sc_map_put_s64(ptr noundef, ptr noundef, i64 noundef) #1

declare void @sc_map_clear_s64(ptr noundef) #1

declare i64 @sc_map_get_s64(ptr noundef, ptr noundef) #1

declare i32 @sc_map_size_s64(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden ptr @str_random(i64 noundef) #4

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @test4() #4 {
  %1 = alloca ptr, align 8
  %2 = alloca %struct.sc_map_64s, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %struct.sc_map_64v, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca [128 x ptr], align 16
  %10 = alloca [128 x ptr], align 16
  %11 = alloca i32, align 4
  %12 = alloca %struct.sc_map_str, align 8
  %13 = alloca i32, align 4
  %14 = alloca %struct.sc_map_sv, align 8
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca %struct.sc_map_s64, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #5
  %20 = call zeroext i1 @sc_map_init_64s(ptr noundef %2, i32 noundef 1, i32 noundef 87)
  br i1 %20, label %21, label %22

21:                                               ; preds = %0
  br label %23

22:                                               ; preds = %0
  call void @__assert_fail(ptr noundef @.str.136, ptr noundef @.str.14, i32 noundef 1984, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

23:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %46, %23
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = icmp slt i32 %25, 100
  br i1 %26, label %28, label %27

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

28:                                               ; preds = %24
  %29 = load i32, ptr %3, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = call ptr @sc_map_put_64s(ptr noundef %2, i64 noundef %30, ptr noundef null)
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = call ptr @sc_map_get_64s(ptr noundef %2, i64 noundef %33)
  store ptr %34, ptr %1, align 8, !tbaa !9
  %35 = getelementptr inbounds %struct.sc_map_64s, ptr %2, i32 0, i32 7
  %36 = load i8, ptr %35, align 2, !tbaa !11, !range !14, !noundef !15
  %37 = trunc i8 %36 to i1
  br i1 %37, label %38, label %39

38:                                               ; preds = %28
  br label %40

39:                                               ; preds = %28
  call void @__assert_fail(ptr noundef @.str.137, ptr noundef @.str.14, i32 noundef 1988, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

40:                                               ; preds = %38
  %41 = load ptr, ptr %1, align 8, !tbaa !9
  %42 = icmp eq ptr %41, null
  br i1 %42, label %43, label %44

43:                                               ; preds = %40
  br label %45

44:                                               ; preds = %40
  call void @__assert_fail(ptr noundef @.str.138, ptr noundef @.str.14, i32 noundef 1989, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

45:                                               ; preds = %43
  br label %46

46:                                               ; preds = %45
  %47 = load i32, ptr %3, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %3, align 4, !tbaa !5
  br label %24, !llvm.loop !16

49:                                               ; preds = %27
  %50 = call i32 @sc_map_size_64s(ptr noundef %2)
  %51 = icmp eq i32 %50, 100
  br i1 %51, label %52, label %53

52:                                               ; preds = %49
  br label %54

53:                                               ; preds = %49
  call void @__assert_fail(ptr noundef @.str.139, ptr noundef @.str.14, i32 noundef 1991, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

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

55:                                               ; preds = %74, %54
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = icmp slt i32 %56, 100
  br i1 %57, label %59, label %58

58:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %77

59:                                               ; preds = %55
  %60 = load i32, ptr %4, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = call ptr @sc_map_del_64s(ptr noundef %2, i64 noundef %61)
  store ptr %62, ptr %1, align 8, !tbaa !9
  %63 = getelementptr inbounds %struct.sc_map_64s, ptr %2, i32 0, i32 7
  %64 = load i8, ptr %63, align 2, !tbaa !11, !range !14, !noundef !15
  %65 = trunc i8 %64 to i1
  br i1 %65, label %66, label %67

66:                                               ; preds = %59
  br label %68

67:                                               ; preds = %59
  call void @__assert_fail(ptr noundef @.str.137, ptr noundef @.str.14, i32 noundef 1994, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

68:                                               ; preds = %66
  %69 = load ptr, ptr %1, align 8, !tbaa !9
  %70 = icmp eq ptr %69, null
  br i1 %70, label %71, label %72

71:                                               ; preds = %68
  br label %73

72:                                               ; preds = %68
  call void @__assert_fail(ptr noundef @.str.138, ptr noundef @.str.14, i32 noundef 1995, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

73:                                               ; preds = %71
  br label %74

74:                                               ; preds = %73
  %75 = load i32, ptr %4, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %4, align 4, !tbaa !5
  br label %55, !llvm.loop !18

77:                                               ; preds = %58
  %78 = call i32 @sc_map_size_64s(ptr noundef %2)
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %81

80:                                               ; preds = %77
  br label %82

81:                                               ; preds = %77
  call void @__assert_fail(ptr noundef @.str.140, ptr noundef @.str.14, i32 noundef 1997, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

82:                                               ; preds = %80
  %83 = call ptr @sc_map_put_64s(ptr noundef %2, i64 noundef 3, ptr noundef null)
  %84 = call i32 @sc_map_size_64s(ptr noundef %2)
  %85 = icmp eq i32 %84, 1
  br i1 %85, label %86, label %87

86:                                               ; preds = %82
  br label %88

87:                                               ; preds = %82
  call void @__assert_fail(ptr noundef @.str.141, ptr noundef @.str.14, i32 noundef 1999, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

88:                                               ; preds = %86
  call void @sc_map_clear_64s(ptr noundef %2)
  %89 = call i32 @sc_map_size_64s(ptr noundef %2)
  %90 = icmp eq i32 %89, 0
  br i1 %90, label %91, label %92

91:                                               ; preds = %88
  br label %93

92:                                               ; preds = %88
  call void @__assert_fail(ptr noundef @.str.140, ptr noundef @.str.14, i32 noundef 2001, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

93:                                               ; preds = %91
  call void @sc_map_term_64s(ptr noundef %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #5
  %94 = call zeroext i1 @sc_map_init_64v(ptr noundef %6, i32 noundef 1, i32 noundef 87)
  br i1 %94, label %95, label %96

95:                                               ; preds = %93
  br label %97

96:                                               ; preds = %93
  call void @__assert_fail(ptr noundef @.str.142, ptr noundef @.str.14, i32 noundef 2008, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

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

98:                                               ; preds = %120, %97
  %99 = load i32, ptr %7, align 4, !tbaa !5
  %100 = icmp slt i32 %99, 100
  br i1 %100, label %102, label %101

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

102:                                              ; preds = %98
  %103 = load i32, ptr %7, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = call ptr @sc_map_put_64v(ptr noundef %6, i64 noundef %104, ptr noundef null)
  %106 = load i32, ptr %7, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = call ptr @sc_map_get_64v(ptr noundef %6, i64 noundef %107)
  store ptr %108, ptr %5, align 8, !tbaa !9
  %109 = getelementptr inbounds %struct.sc_map_64v, ptr %6, i32 0, i32 7
  %110 = load i8, ptr %109, align 2, !tbaa !19, !range !14, !noundef !15
  %111 = trunc i8 %110 to i1
  br i1 %111, label %112, label %113

112:                                              ; preds = %102
  br label %114

113:                                              ; preds = %102
  call void @__assert_fail(ptr noundef @.str.143, ptr noundef @.str.14, i32 noundef 2012, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

114:                                              ; preds = %112
  %115 = load ptr, ptr %5, align 8, !tbaa !9
  %116 = icmp eq ptr %115, null
  br i1 %116, label %117, label %118

117:                                              ; preds = %114
  br label %119

118:                                              ; preds = %114
  call void @__assert_fail(ptr noundef @.str.144, ptr noundef @.str.14, i32 noundef 2013, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

119:                                              ; preds = %117
  br label %120

120:                                              ; preds = %119
  %121 = load i32, ptr %7, align 4, !tbaa !5
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %7, align 4, !tbaa !5
  br label %98, !llvm.loop !21

123:                                              ; preds = %101
  %124 = call i32 @sc_map_size_64v(ptr noundef %6)
  %125 = icmp eq i32 %124, 100
  br i1 %125, label %126, label %127

126:                                              ; preds = %123
  br label %128

127:                                              ; preds = %123
  call void @__assert_fail(ptr noundef @.str.145, ptr noundef @.str.14, i32 noundef 2015, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

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

129:                                              ; preds = %148, %128
  %130 = load i32, ptr %8, align 4, !tbaa !5
  %131 = icmp slt i32 %130, 100
  br i1 %131, label %133, label %132

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

133:                                              ; preds = %129
  %134 = load i32, ptr %8, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = call ptr @sc_map_del_64v(ptr noundef %6, i64 noundef %135)
  store ptr %136, ptr %5, align 8, !tbaa !9
  %137 = getelementptr inbounds %struct.sc_map_64v, ptr %6, i32 0, i32 7
  %138 = load i8, ptr %137, align 2, !tbaa !19, !range !14, !noundef !15
  %139 = trunc i8 %138 to i1
  br i1 %139, label %140, label %141

140:                                              ; preds = %133
  br label %142

141:                                              ; preds = %133
  call void @__assert_fail(ptr noundef @.str.143, ptr noundef @.str.14, i32 noundef 2018, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

142:                                              ; preds = %140
  %143 = load ptr, ptr %5, align 8, !tbaa !9
  %144 = icmp eq ptr %143, null
  br i1 %144, label %145, label %146

145:                                              ; preds = %142
  br label %147

146:                                              ; preds = %142
  call void @__assert_fail(ptr noundef @.str.144, ptr noundef @.str.14, i32 noundef 2019, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

147:                                              ; preds = %145
  br label %148

148:                                              ; preds = %147
  %149 = load i32, ptr %8, align 4, !tbaa !5
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %8, align 4, !tbaa !5
  br label %129, !llvm.loop !22

151:                                              ; preds = %132
  %152 = call i32 @sc_map_size_64v(ptr noundef %6)
  %153 = icmp eq i32 %152, 0
  br i1 %153, label %154, label %155

154:                                              ; preds = %151
  br label %156

155:                                              ; preds = %151
  call void @__assert_fail(ptr noundef @.str.146, ptr noundef @.str.14, i32 noundef 2021, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

156:                                              ; preds = %154
  %157 = call ptr @sc_map_put_64v(ptr noundef %6, i64 noundef 3, ptr noundef null)
  %158 = call i32 @sc_map_size_64v(ptr noundef %6)
  %159 = icmp eq i32 %158, 1
  br i1 %159, label %160, label %161

160:                                              ; preds = %156
  br label %162

161:                                              ; preds = %156
  call void @__assert_fail(ptr noundef @.str.147, ptr noundef @.str.14, i32 noundef 2023, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

162:                                              ; preds = %160
  call void @sc_map_clear_64v(ptr noundef %6)
  %163 = call i32 @sc_map_size_64v(ptr noundef %6)
  %164 = icmp eq i32 %163, 0
  br i1 %164, label %165, label %166

165:                                              ; preds = %162
  br label %167

166:                                              ; preds = %162
  call void @__assert_fail(ptr noundef @.str.146, ptr noundef @.str.14, i32 noundef 2025, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

167:                                              ; preds = %165
  call void @sc_map_term_64v(ptr noundef %6)
  call void @llvm.lifetime.start.p0(i64 1024, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 1024, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %168

168:                                              ; preds = %189, %167
  %169 = load i32, ptr %11, align 4, !tbaa !5
  %170 = icmp slt i32 %169, 128
  br i1 %170, label %172, label %171

171:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %192

172:                                              ; preds = %168
  %173 = call i32 @rand() #5
  %174 = srem i32 %173, 64
  %175 = add nsw i32 %174, 32
  %176 = sext i32 %175 to i64
  %177 = call ptr @str_random(i64 noundef %176)
  %178 = load i32, ptr %11, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [128 x ptr], ptr %9, i64 0, i64 %179
  store ptr %177, ptr %180, align 8, !tbaa !9
  %181 = call i32 @rand() #5
  %182 = srem i32 %181, 64
  %183 = add nsw i32 %182, 32
  %184 = sext i32 %183 to i64
  %185 = call ptr @str_random(i64 noundef %184)
  %186 = load i32, ptr %11, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [128 x ptr], ptr %10, i64 0, i64 %187
  store ptr %185, ptr %188, align 8, !tbaa !9
  br label %189

189:                                              ; preds = %172
  %190 = load i32, ptr %11, align 4, !tbaa !5
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %11, align 4, !tbaa !5
  br label %168, !llvm.loop !23

192:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #5
  %193 = call zeroext i1 @sc_map_init_str(ptr noundef %12, i32 noundef 0, i32 noundef 26)
  br i1 %193, label %194, label %195

194:                                              ; preds = %192
  br label %196

195:                                              ; preds = %192
  call void @__assert_fail(ptr noundef @.str.148, ptr noundef @.str.14, i32 noundef 2038, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

196:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %197

197:                                              ; preds = %210, %196
  %198 = load i32, ptr %13, align 4, !tbaa !5
  %199 = icmp slt i32 %198, 64
  br i1 %199, label %201, label %200

200:                                              ; preds = %197
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %213

201:                                              ; preds = %197
  %202 = load i32, ptr %13, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [128 x ptr], ptr %9, i64 0, i64 %203
  %205 = load ptr, ptr %204, align 8, !tbaa !9
  %206 = load i32, ptr %13, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = inttoptr i64 %207 to ptr
  %209 = call ptr @sc_map_put_str(ptr noundef %12, ptr noundef %205, ptr noundef %208)
  br label %210

210:                                              ; preds = %201
  %211 = load i32, ptr %13, align 4, !tbaa !5
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %13, align 4, !tbaa !5
  br label %197, !llvm.loop !24

213:                                              ; preds = %200
  %214 = getelementptr inbounds [128 x ptr], ptr %9, i64 0, i64 0
  %215 = load ptr, ptr %214, align 16, !tbaa !9
  %216 = call ptr @sc_map_get_str(ptr noundef %12, ptr noundef %215)
  store ptr %216, ptr %5, align 8, !tbaa !9
  %217 = getelementptr inbounds %struct.sc_map_str, ptr %12, i32 0, i32 7
  %218 = load i8, ptr %217, align 2, !tbaa !25, !range !14, !noundef !15
  %219 = trunc i8 %218 to i1
  br i1 %219, label %220, label %221

220:                                              ; preds = %213
  br label %222

221:                                              ; preds = %213
  call void @__assert_fail(ptr noundef @.str.149, ptr noundef @.str.14, i32 noundef 2044, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

222:                                              ; preds = %220
  %223 = load ptr, ptr %5, align 8, !tbaa !9
  %224 = icmp eq ptr %223, null
  br i1 %224, label %225, label %226

225:                                              ; preds = %222
  br label %227

226:                                              ; preds = %222
  call void @__assert_fail(ptr noundef @.str.150, ptr noundef @.str.14, i32 noundef 2045, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

227:                                              ; preds = %225
  %228 = call i32 @sc_map_size_str(ptr noundef %12)
  %229 = icmp eq i32 %228, 64
  br i1 %229, label %230, label %231

230:                                              ; preds = %227
  br label %232

231:                                              ; preds = %227
  call void @__assert_fail(ptr noundef @.str.151, ptr noundef @.str.14, i32 noundef 2046, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

232:                                              ; preds = %230
  %233 = getelementptr inbounds [128 x ptr], ptr %9, i64 0, i64 12
  %234 = load ptr, ptr %233, align 16, !tbaa !9
  %235 = call ptr @sc_map_del_str(ptr noundef %12, ptr noundef %234)
  store ptr %235, ptr %5, align 8, !tbaa !9
  %236 = getelementptr inbounds %struct.sc_map_str, ptr %12, i32 0, i32 7
  %237 = load i8, ptr %236, align 2, !tbaa !25, !range !14, !noundef !15
  %238 = trunc i8 %237 to i1
  br i1 %238, label %239, label %240

239:                                              ; preds = %232
  br label %241

240:                                              ; preds = %232
  call void @__assert_fail(ptr noundef @.str.149, ptr noundef @.str.14, i32 noundef 2049, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

241:                                              ; preds = %239
  %242 = load ptr, ptr %5, align 8, !tbaa !9
  %243 = icmp eq ptr %242, inttoptr (i64 12 to ptr)
  br i1 %243, label %244, label %245

244:                                              ; preds = %241
  br label %246

245:                                              ; preds = %241
  call void @__assert_fail(ptr noundef @.str.152, ptr noundef @.str.14, i32 noundef 2050, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

246:                                              ; preds = %244
  %247 = call i32 @sc_map_size_str(ptr noundef %12)
  %248 = icmp eq i32 %247, 63
  br i1 %248, label %249, label %250

249:                                              ; preds = %246
  br label %251

250:                                              ; preds = %246
  call void @__assert_fail(ptr noundef @.str.153, ptr noundef @.str.14, i32 noundef 2051, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

251:                                              ; preds = %249
  call void @sc_map_clear_str(ptr noundef %12)
  call void @sc_map_term_str(ptr noundef %12)
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #5
  %252 = call zeroext i1 @sc_map_init_sv(ptr noundef %14, i32 noundef 0, i32 noundef 26)
  br i1 %252, label %253, label %254

253:                                              ; preds = %251
  br label %255

254:                                              ; preds = %251
  call void @__assert_fail(ptr noundef @.str.154, ptr noundef @.str.14, i32 noundef 2056, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

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

256:                                              ; preds = %269, %255
  %257 = load i32, ptr %15, align 4, !tbaa !5
  %258 = icmp slt i32 %257, 64
  br i1 %258, label %260, label %259

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

260:                                              ; preds = %256
  %261 = load i32, ptr %15, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [128 x ptr], ptr %9, i64 0, i64 %262
  %264 = load ptr, ptr %263, align 8, !tbaa !9
  %265 = load i32, ptr %15, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = inttoptr i64 %266 to ptr
  %268 = call ptr @sc_map_put_sv(ptr noundef %14, ptr noundef %264, ptr noundef %267)
  br label %269

269:                                              ; preds = %260
  %270 = load i32, ptr %15, align 4, !tbaa !5
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr %15, align 4, !tbaa !5
  br label %256, !llvm.loop !27

272:                                              ; preds = %259
  %273 = getelementptr inbounds [128 x ptr], ptr %9, i64 0, i64 0
  %274 = load ptr, ptr %273, align 16, !tbaa !9
  %275 = call ptr @sc_map_get_sv(ptr noundef %14, ptr noundef %274)
  store ptr %275, ptr %5, align 8, !tbaa !9
  %276 = getelementptr inbounds %struct.sc_map_sv, ptr %14, i32 0, i32 7
  %277 = load i8, ptr %276, align 2, !tbaa !28, !range !14, !noundef !15
  %278 = trunc i8 %277 to i1
  br i1 %278, label %279, label %280

279:                                              ; preds = %272
  br label %281

280:                                              ; preds = %272
  call void @__assert_fail(ptr noundef @.str.155, ptr noundef @.str.14, i32 noundef 2061, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

281:                                              ; preds = %279
  %282 = load ptr, ptr %5, align 8, !tbaa !9
  %283 = icmp eq ptr %282, null
  br i1 %283, label %284, label %285

284:                                              ; preds = %281
  br label %286

285:                                              ; preds = %281
  call void @__assert_fail(ptr noundef @.str.150, ptr noundef @.str.14, i32 noundef 2062, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

286:                                              ; preds = %284
  %287 = call i32 @sc_map_size_sv(ptr noundef %14)
  %288 = icmp eq i32 %287, 64
  br i1 %288, label %289, label %290

289:                                              ; preds = %286
  br label %291

290:                                              ; preds = %286
  call void @__assert_fail(ptr noundef @.str.156, ptr noundef @.str.14, i32 noundef 2063, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

291:                                              ; preds = %289
  %292 = getelementptr inbounds [128 x ptr], ptr %9, i64 0, i64 12
  %293 = load ptr, ptr %292, align 16, !tbaa !9
  %294 = call ptr @sc_map_del_sv(ptr noundef %14, ptr noundef %293)
  store ptr %294, ptr %5, align 8, !tbaa !9
  %295 = getelementptr inbounds %struct.sc_map_sv, ptr %14, i32 0, i32 7
  %296 = load i8, ptr %295, align 2, !tbaa !28, !range !14, !noundef !15
  %297 = trunc i8 %296 to i1
  br i1 %297, label %298, label %299

298:                                              ; preds = %291
  br label %300

299:                                              ; preds = %291
  call void @__assert_fail(ptr noundef @.str.155, ptr noundef @.str.14, i32 noundef 2066, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

300:                                              ; preds = %298
  %301 = load ptr, ptr %5, align 8, !tbaa !9
  %302 = icmp eq ptr %301, inttoptr (i64 12 to ptr)
  br i1 %302, label %303, label %304

303:                                              ; preds = %300
  br label %305

304:                                              ; preds = %300
  call void @__assert_fail(ptr noundef @.str.152, ptr noundef @.str.14, i32 noundef 2067, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

305:                                              ; preds = %303
  %306 = call i32 @sc_map_size_sv(ptr noundef %14)
  %307 = icmp eq i32 %306, 63
  br i1 %307, label %308, label %309

308:                                              ; preds = %305
  br label %310

309:                                              ; preds = %305
  call void @__assert_fail(ptr noundef @.str.157, ptr noundef @.str.14, i32 noundef 2068, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

310:                                              ; preds = %308
  call void @sc_map_clear_sv(ptr noundef %14)
  call void @sc_map_term_sv(ptr noundef %14)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #5
  %311 = call zeroext i1 @sc_map_init_s64(ptr noundef %17, i32 noundef 0, i32 noundef 26)
  br i1 %311, label %312, label %313

312:                                              ; preds = %310
  br label %314

313:                                              ; preds = %310
  call void @__assert_fail(ptr noundef @.str.158, ptr noundef @.str.14, i32 noundef 2075, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

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

315:                                              ; preds = %327, %314
  %316 = load i32, ptr %18, align 4, !tbaa !5
  %317 = icmp slt i32 %316, 64
  br i1 %317, label %319, label %318

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

319:                                              ; preds = %315
  %320 = load i32, ptr %18, align 4, !tbaa !5
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds [128 x ptr], ptr %9, i64 0, i64 %321
  %323 = load ptr, ptr %322, align 8, !tbaa !9
  %324 = load i32, ptr %18, align 4, !tbaa !5
  %325 = sext i32 %324 to i64
  %326 = call i64 @sc_map_put_s64(ptr noundef %17, ptr noundef %323, i64 noundef %325)
  br label %327

327:                                              ; preds = %319
  %328 = load i32, ptr %18, align 4, !tbaa !5
  %329 = add nsw i32 %328, 1
  store i32 %329, ptr %18, align 4, !tbaa !5
  br label %315, !llvm.loop !30

330:                                              ; preds = %318
  %331 = getelementptr inbounds [128 x ptr], ptr %9, i64 0, i64 0
  %332 = load ptr, ptr %331, align 16, !tbaa !9
  %333 = call i64 @sc_map_get_s64(ptr noundef %17, ptr noundef %332)
  store i64 %333, ptr %16, align 8, !tbaa !31
  %334 = getelementptr inbounds %struct.sc_map_s64, ptr %17, i32 0, i32 7
  %335 = load i8, ptr %334, align 2, !tbaa !33, !range !14, !noundef !15
  %336 = trunc i8 %335 to i1
  br i1 %336, label %337, label %338

337:                                              ; preds = %330
  br label %339

338:                                              ; preds = %330
  call void @__assert_fail(ptr noundef @.str.159, ptr noundef @.str.14, i32 noundef 2081, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

339:                                              ; preds = %337
  %340 = load i64, ptr %16, align 8, !tbaa !31
  %341 = icmp eq i64 %340, 0
  br i1 %341, label %342, label %343

342:                                              ; preds = %339
  br label %344

343:                                              ; preds = %339
  call void @__assert_fail(ptr noundef @.str.160, ptr noundef @.str.14, i32 noundef 2082, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

344:                                              ; preds = %342
  %345 = call i32 @sc_map_size_s64(ptr noundef %17)
  %346 = icmp eq i32 %345, 64
  br i1 %346, label %347, label %348

347:                                              ; preds = %344
  br label %349

348:                                              ; preds = %344
  call void @__assert_fail(ptr noundef @.str.161, ptr noundef @.str.14, i32 noundef 2083, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

349:                                              ; preds = %347
  %350 = getelementptr inbounds [128 x ptr], ptr %9, i64 0, i64 12
  %351 = load ptr, ptr %350, align 16, !tbaa !9
  %352 = call i64 @sc_map_del_s64(ptr noundef %17, ptr noundef %351)
  store i64 %352, ptr %16, align 8, !tbaa !31
  %353 = getelementptr inbounds %struct.sc_map_s64, ptr %17, i32 0, i32 7
  %354 = load i8, ptr %353, align 2, !tbaa !33, !range !14, !noundef !15
  %355 = trunc i8 %354 to i1
  br i1 %355, label %356, label %357

356:                                              ; preds = %349
  br label %358

357:                                              ; preds = %349
  call void @__assert_fail(ptr noundef @.str.159, ptr noundef @.str.14, i32 noundef 2086, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

358:                                              ; preds = %356
  %359 = load i64, ptr %16, align 8, !tbaa !31
  %360 = icmp eq i64 %359, 12
  br i1 %360, label %361, label %362

361:                                              ; preds = %358
  br label %363

362:                                              ; preds = %358
  call void @__assert_fail(ptr noundef @.str.162, ptr noundef @.str.14, i32 noundef 2087, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

363:                                              ; preds = %361
  %364 = call i32 @sc_map_size_s64(ptr noundef %17)
  %365 = icmp eq i32 %364, 63
  br i1 %365, label %366, label %367

366:                                              ; preds = %363
  br label %368

367:                                              ; preds = %363
  call void @__assert_fail(ptr noundef @.str.163, ptr noundef @.str.14, i32 noundef 2088, ptr noundef @__PRETTY_FUNCTION__.test4) #6
  unreachable

368:                                              ; preds = %366
  call void @sc_map_clear_s64(ptr noundef %17)
  call void @sc_map_term_s64(ptr noundef %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %369

369:                                              ; preds = %382, %368
  %370 = load i32, ptr %19, align 4, !tbaa !5
  %371 = icmp slt i32 %370, 128
  br i1 %371, label %373, label %372

372:                                              ; preds = %369
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %385

373:                                              ; preds = %369
  %374 = load i32, ptr %19, align 4, !tbaa !5
  %375 = sext i32 %374 to i64
  %376 = getelementptr inbounds [128 x ptr], ptr %9, i64 0, i64 %375
  %377 = load ptr, ptr %376, align 8, !tbaa !9
  call void @free(ptr noundef %377) #5
  %378 = load i32, ptr %19, align 4, !tbaa !5
  %379 = sext i32 %378 to i64
  %380 = getelementptr inbounds [128 x ptr], ptr %10, i64 0, i64 %379
  %381 = load ptr, ptr %380, align 8, !tbaa !9
  call void @free(ptr noundef %381) #5
  br label %382

382:                                              ; preds = %373
  %383 = load i32, ptr %19, align 4, !tbaa !5
  %384 = add nsw i32 %383, 1
  store i32 %384, ptr %19, align 4, !tbaa !5
  br label %369, !llvm.loop !35

385:                                              ; preds = %372
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 1024, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 1024, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #5
  ret void
}

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

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

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


; 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_64s = type { ptr, i32, i32, i32, i32, i8, i8, i8 }
%struct.sc_map_64v = type { ptr, i32, i32, i32, i32, i8, i8, i8 }
%struct.sc_map_str = type { ptr, i32, i32, i32, i32, i8, i8, i8 }
%struct.sc_map_sv = type { ptr, i32, i32, i32, i32, i8, i8, i8 }
%struct.sc_map_s64 = type { ptr, i32, i32, i32, i32, i8, i8, i8 }

@.str.14 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [32 x i8], align 1
@__PRETTY_FUNCTION__.test4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.160 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.162 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.163 = external hidden unnamed_addr constant [31 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

declare zeroext i1 @sc_map_init_str(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare ptr @sc_map_put_str(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare void @sc_map_term_str(ptr 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 #3

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

declare void @sc_map_term_64v(ptr noundef) local_unnamed_addr #1

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

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

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

declare void @sc_map_clear_64v(ptr noundef) local_unnamed_addr #1

declare i32 @sc_map_size_64v(ptr noundef) local_unnamed_addr #1

declare zeroext i1 @sc_map_init_64s(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @sc_map_term_64s(ptr noundef) local_unnamed_addr #1

declare ptr @sc_map_del_64s(ptr noundef, i64 noundef) local_unnamed_addr #1

declare ptr @sc_map_get_64s(ptr noundef, i64 noundef) local_unnamed_addr #1

declare ptr @sc_map_put_64s(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare void @sc_map_clear_64s(ptr noundef) local_unnamed_addr #1

declare i32 @sc_map_size_64s(ptr noundef) local_unnamed_addr #1

declare ptr @sc_map_del_str(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @sc_map_clear_str(ptr noundef) local_unnamed_addr #1

declare ptr @sc_map_get_str(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @sc_map_size_str(ptr noundef) local_unnamed_addr #1

declare zeroext i1 @sc_map_init_sv(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @sc_map_term_sv(ptr noundef) local_unnamed_addr #1

declare ptr @sc_map_del_sv(ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @sc_map_put_sv(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @sc_map_clear_sv(ptr noundef) local_unnamed_addr #1

declare ptr @sc_map_get_sv(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @sc_map_size_sv(ptr noundef) local_unnamed_addr #1

declare zeroext i1 @sc_map_init_s64(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @sc_map_term_s64(ptr noundef) local_unnamed_addr #1

declare i64 @sc_map_del_s64(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i64 @sc_map_put_s64(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

declare void @sc_map_clear_s64(ptr noundef) local_unnamed_addr #1

declare i64 @sc_map_get_s64(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @sc_map_size_s64(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden ptr @str_random(i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
define dso_local void @test4() local_unnamed_addr #4 {
  %1 = alloca %struct.sc_map_64s, align 8
  %2 = alloca %struct.sc_map_64v, align 8
  %3 = alloca [128 x ptr], align 16
  %4 = alloca [128 x ptr], align 16
  %5 = alloca %struct.sc_map_str, align 8
  %6 = alloca %struct.sc_map_sv, align 8
  %7 = alloca %struct.sc_map_s64, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #6
  %8 = call zeroext i1 @sc_map_init_64s(ptr noundef nonnull %1, i32 noundef 1, i32 noundef 87) #6
  br i1 %8, label %.preheader56, label %10

.preheader56:                                     ; preds = %0
  %9 = getelementptr inbounds i8, ptr %1, i64 26
  br label %15

10:                                               ; preds = %0
  call void @__assert_fail(ptr noundef nonnull @.str.136, ptr noundef nonnull @.str.14, i32 noundef 1984, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

11:                                               ; preds = %21
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 100
  br i1 %exitcond.not, label %12, label %15, !llvm.loop !5

12:                                               ; preds = %11
  %13 = call i32 @sc_map_size_64s(ptr noundef nonnull %1) #6
  %14 = icmp eq i32 %13, 100
  br i1 %14, label %.preheader55, label %24

15:                                               ; preds = %.preheader56, %11
  %indvars.iv = phi i64 [ 0, %.preheader56 ], [ %indvars.iv.next, %11 ]
  %16 = call ptr @sc_map_put_64s(ptr noundef nonnull %1, i64 noundef %indvars.iv, ptr noundef null) #6
  %17 = call ptr @sc_map_get_64s(ptr noundef nonnull %1, i64 noundef %indvars.iv) #6
  %18 = load i8, ptr %9, align 2, !tbaa !7, !range !14, !noundef !15
  %19 = trunc nuw i8 %18 to i1
  br i1 %19, label %21, label %20

20:                                               ; preds = %15
  call void @__assert_fail(ptr noundef nonnull @.str.137, ptr noundef nonnull @.str.14, i32 noundef 1988, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

21:                                               ; preds = %15
  %22 = icmp eq ptr %17, null
  br i1 %22, label %11, label %23

23:                                               ; preds = %21
  call void @__assert_fail(ptr noundef nonnull @.str.138, ptr noundef nonnull @.str.14, i32 noundef 1989, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

24:                                               ; preds = %12
  call void @__assert_fail(ptr noundef nonnull @.str.139, ptr noundef nonnull @.str.14, i32 noundef 1991, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

25:                                               ; preds = %33
  %indvars.iv.next68 = add nuw nsw i64 %indvars.iv67, 1
  %exitcond70.not = icmp eq i64 %indvars.iv.next68, 100
  br i1 %exitcond70.not, label %26, label %.preheader55, !llvm.loop !16

26:                                               ; preds = %25
  %27 = call i32 @sc_map_size_64s(ptr noundef nonnull %1) #6
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %37, label %36

.preheader55:                                     ; preds = %12, %25
  %indvars.iv67 = phi i64 [ %indvars.iv.next68, %25 ], [ 0, %12 ]
  %29 = call ptr @sc_map_del_64s(ptr noundef nonnull %1, i64 noundef %indvars.iv67) #6
  %30 = load i8, ptr %9, align 2, !tbaa !7, !range !14, !noundef !15
  %31 = trunc nuw i8 %30 to i1
  br i1 %31, label %33, label %32

32:                                               ; preds = %.preheader55
  call void @__assert_fail(ptr noundef nonnull @.str.137, ptr noundef nonnull @.str.14, i32 noundef 1994, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

33:                                               ; preds = %.preheader55
  %34 = icmp eq ptr %29, null
  br i1 %34, label %25, label %35

35:                                               ; preds = %33
  call void @__assert_fail(ptr noundef nonnull @.str.138, ptr noundef nonnull @.str.14, i32 noundef 1995, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

36:                                               ; preds = %26
  call void @__assert_fail(ptr noundef nonnull @.str.140, ptr noundef nonnull @.str.14, i32 noundef 1997, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

37:                                               ; preds = %26
  %38 = call ptr @sc_map_put_64s(ptr noundef nonnull %1, i64 noundef 3, ptr noundef null) #6
  %39 = call i32 @sc_map_size_64s(ptr noundef nonnull %1) #6
  %40 = icmp eq i32 %39, 1
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  call void @__assert_fail(ptr noundef nonnull @.str.141, ptr noundef nonnull @.str.14, i32 noundef 1999, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

42:                                               ; preds = %37
  call void @sc_map_clear_64s(ptr noundef nonnull %1) #6
  %43 = call i32 @sc_map_size_64s(ptr noundef nonnull %1) #6
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %46, label %45

45:                                               ; preds = %42
  call void @__assert_fail(ptr noundef nonnull @.str.140, ptr noundef nonnull @.str.14, i32 noundef 2001, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

46:                                               ; preds = %42
  call void @sc_map_term_64s(ptr noundef nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  %47 = call zeroext i1 @sc_map_init_64v(ptr noundef nonnull %2, i32 noundef 1, i32 noundef 87) #6
  br i1 %47, label %.preheader54, label %49

.preheader54:                                     ; preds = %46
  %48 = getelementptr inbounds i8, ptr %2, i64 26
  br label %54

49:                                               ; preds = %46
  call void @__assert_fail(ptr noundef nonnull @.str.142, ptr noundef nonnull @.str.14, i32 noundef 2008, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

50:                                               ; preds = %60
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %exitcond74.not = icmp eq i64 %indvars.iv.next72, 100
  br i1 %exitcond74.not, label %51, label %54, !llvm.loop !17

51:                                               ; preds = %50
  %52 = call i32 @sc_map_size_64v(ptr noundef nonnull %2) #6
  %53 = icmp eq i32 %52, 100
  br i1 %53, label %.preheader53, label %63

54:                                               ; preds = %.preheader54, %50
  %indvars.iv71 = phi i64 [ 0, %.preheader54 ], [ %indvars.iv.next72, %50 ]
  %55 = call ptr @sc_map_put_64v(ptr noundef nonnull %2, i64 noundef %indvars.iv71, ptr noundef null) #6
  %56 = call ptr @sc_map_get_64v(ptr noundef nonnull %2, i64 noundef %indvars.iv71) #6
  %57 = load i8, ptr %48, align 2, !tbaa !18, !range !14, !noundef !15
  %58 = trunc nuw i8 %57 to i1
  br i1 %58, label %60, label %59

59:                                               ; preds = %54
  call void @__assert_fail(ptr noundef nonnull @.str.143, ptr noundef nonnull @.str.14, i32 noundef 2012, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

60:                                               ; preds = %54
  %61 = icmp eq ptr %56, null
  br i1 %61, label %50, label %62

62:                                               ; preds = %60
  call void @__assert_fail(ptr noundef nonnull @.str.144, ptr noundef nonnull @.str.14, i32 noundef 2013, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

63:                                               ; preds = %51
  call void @__assert_fail(ptr noundef nonnull @.str.145, ptr noundef nonnull @.str.14, i32 noundef 2015, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

64:                                               ; preds = %72
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %exitcond78.not = icmp eq i64 %indvars.iv.next76, 100
  br i1 %exitcond78.not, label %65, label %.preheader53, !llvm.loop !20

65:                                               ; preds = %64
  %66 = call i32 @sc_map_size_64v(ptr noundef nonnull %2) #6
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %76, label %75

.preheader53:                                     ; preds = %51, %64
  %indvars.iv75 = phi i64 [ %indvars.iv.next76, %64 ], [ 0, %51 ]
  %68 = call ptr @sc_map_del_64v(ptr noundef nonnull %2, i64 noundef %indvars.iv75) #6
  %69 = load i8, ptr %48, align 2, !tbaa !18, !range !14, !noundef !15
  %70 = trunc nuw i8 %69 to i1
  br i1 %70, label %72, label %71

71:                                               ; preds = %.preheader53
  call void @__assert_fail(ptr noundef nonnull @.str.143, ptr noundef nonnull @.str.14, i32 noundef 2018, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

72:                                               ; preds = %.preheader53
  %73 = icmp eq ptr %68, null
  br i1 %73, label %64, label %74

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

75:                                               ; preds = %65
  call void @__assert_fail(ptr noundef nonnull @.str.146, ptr noundef nonnull @.str.14, i32 noundef 2021, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

76:                                               ; preds = %65
  %77 = call ptr @sc_map_put_64v(ptr noundef nonnull %2, i64 noundef 3, ptr noundef null) #6
  %78 = call i32 @sc_map_size_64v(ptr noundef nonnull %2) #6
  %79 = icmp eq i32 %78, 1
  br i1 %79, label %81, label %80

80:                                               ; preds = %76
  call void @__assert_fail(ptr noundef nonnull @.str.147, ptr noundef nonnull @.str.14, i32 noundef 2023, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

81:                                               ; preds = %76
  call void @sc_map_clear_64v(ptr noundef nonnull %2) #6
  %82 = call i32 @sc_map_size_64v(ptr noundef nonnull %2) #6
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %85, label %84

84:                                               ; preds = %81
  call void @__assert_fail(ptr noundef nonnull @.str.146, ptr noundef nonnull @.str.14, i32 noundef 2025, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

85:                                               ; preds = %81
  call void @sc_map_term_64v(ptr noundef nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %4) #6
  br label %88

86:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  %87 = call zeroext i1 @sc_map_init_str(ptr noundef nonnull %5, i32 noundef 0, i32 noundef 26) #6
  br i1 %87, label %.preheader52, label %101

88:                                               ; preds = %85, %88
  %indvars.iv79 = phi i64 [ 0, %85 ], [ %indvars.iv.next80, %88 ]
  %89 = call i32 @rand() #6
  %90 = srem i32 %89, 64
  %91 = add nsw i32 %90, 32
  %92 = sext i32 %91 to i64
  %93 = call ptr @str_random(i64 noundef %92)
  %94 = getelementptr inbounds [128 x ptr], ptr %3, i64 0, i64 %indvars.iv79
  store ptr %93, ptr %94, align 8, !tbaa !21
  %95 = call i32 @rand() #6
  %96 = srem i32 %95, 64
  %97 = add nsw i32 %96, 32
  %98 = sext i32 %97 to i64
  %99 = call ptr @str_random(i64 noundef %98)
  %100 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %indvars.iv79
  store ptr %99, ptr %100, align 8, !tbaa !21
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %exitcond82.not = icmp eq i64 %indvars.iv.next80, 128
  br i1 %exitcond82.not, label %86, label %88, !llvm.loop !22

101:                                              ; preds = %86
  call void @__assert_fail(ptr noundef nonnull @.str.148, ptr noundef nonnull @.str.14, i32 noundef 2038, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

102:                                              ; preds = %.preheader52
  %103 = load ptr, ptr %3, align 16, !tbaa !21
  %104 = call ptr @sc_map_get_str(ptr noundef nonnull %5, ptr noundef %103) #6
  %105 = getelementptr inbounds i8, ptr %5, i64 26
  %106 = load i8, ptr %105, align 2, !tbaa !23, !range !14, !noundef !15
  %107 = trunc nuw i8 %106 to i1
  br i1 %107, label %113, label %112

.preheader52:                                     ; preds = %86, %.preheader52
  %indvars.iv83 = phi i64 [ %indvars.iv.next84, %.preheader52 ], [ 0, %86 ]
  %108 = getelementptr inbounds [128 x ptr], ptr %3, i64 0, i64 %indvars.iv83
  %109 = load ptr, ptr %108, align 8, !tbaa !21
  %110 = inttoptr i64 %indvars.iv83 to ptr
  %111 = call ptr @sc_map_put_str(ptr noundef nonnull %5, ptr noundef %109, ptr noundef %110) #6
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %exitcond86.not = icmp eq i64 %indvars.iv.next84, 64
  br i1 %exitcond86.not, label %102, label %.preheader52, !llvm.loop !25

112:                                              ; preds = %102
  call void @__assert_fail(ptr noundef nonnull @.str.149, ptr noundef nonnull @.str.14, i32 noundef 2044, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

113:                                              ; preds = %102
  %114 = icmp eq ptr %104, null
  br i1 %114, label %116, label %115

115:                                              ; preds = %113
  call void @__assert_fail(ptr noundef nonnull @.str.150, ptr noundef nonnull @.str.14, i32 noundef 2045, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

116:                                              ; preds = %113
  %117 = call i32 @sc_map_size_str(ptr noundef nonnull %5) #6
  %118 = icmp eq i32 %117, 64
  br i1 %118, label %120, label %119

119:                                              ; preds = %116
  call void @__assert_fail(ptr noundef nonnull @.str.151, ptr noundef nonnull @.str.14, i32 noundef 2046, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

120:                                              ; preds = %116
  %121 = getelementptr inbounds i8, ptr %3, i64 96
  %122 = load ptr, ptr %121, align 16, !tbaa !21
  %123 = call ptr @sc_map_del_str(ptr noundef nonnull %5, ptr noundef %122) #6
  %124 = load i8, ptr %105, align 2, !tbaa !23, !range !14, !noundef !15
  %125 = trunc nuw i8 %124 to i1
  br i1 %125, label %127, label %126

126:                                              ; preds = %120
  call void @__assert_fail(ptr noundef nonnull @.str.149, ptr noundef nonnull @.str.14, i32 noundef 2049, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

127:                                              ; preds = %120
  %128 = icmp eq ptr %123, inttoptr (i64 12 to ptr)
  br i1 %128, label %130, label %129

129:                                              ; preds = %127
  call void @__assert_fail(ptr noundef nonnull @.str.152, ptr noundef nonnull @.str.14, i32 noundef 2050, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

130:                                              ; preds = %127
  %131 = call i32 @sc_map_size_str(ptr noundef nonnull %5) #6
  %132 = icmp eq i32 %131, 63
  br i1 %132, label %134, label %133

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

134:                                              ; preds = %130
  call void @sc_map_clear_str(ptr noundef nonnull %5) #6
  call void @sc_map_term_str(ptr noundef nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  %135 = call zeroext i1 @sc_map_init_sv(ptr noundef nonnull %6, i32 noundef 0, i32 noundef 26) #6
  br i1 %135, label %.preheader51, label %136

136:                                              ; preds = %134
  call void @__assert_fail(ptr noundef nonnull @.str.154, ptr noundef nonnull @.str.14, i32 noundef 2056, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

137:                                              ; preds = %.preheader51
  %138 = call ptr @sc_map_get_sv(ptr noundef nonnull %6, ptr noundef %103) #6
  %139 = getelementptr inbounds i8, ptr %6, i64 26
  %140 = load i8, ptr %139, align 2, !tbaa !26, !range !14, !noundef !15
  %141 = trunc nuw i8 %140 to i1
  br i1 %141, label %147, label %146

.preheader51:                                     ; preds = %134, %.preheader51
  %indvars.iv87 = phi i64 [ %indvars.iv.next88, %.preheader51 ], [ 0, %134 ]
  %142 = getelementptr inbounds [128 x ptr], ptr %3, i64 0, i64 %indvars.iv87
  %143 = load ptr, ptr %142, align 8, !tbaa !21
  %144 = inttoptr i64 %indvars.iv87 to ptr
  %145 = call ptr @sc_map_put_sv(ptr noundef nonnull %6, ptr noundef %143, ptr noundef %144) #6
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %exitcond90.not = icmp eq i64 %indvars.iv.next88, 64
  br i1 %exitcond90.not, label %137, label %.preheader51, !llvm.loop !28

146:                                              ; preds = %137
  call void @__assert_fail(ptr noundef nonnull @.str.155, ptr noundef nonnull @.str.14, i32 noundef 2061, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

147:                                              ; preds = %137
  %148 = icmp eq ptr %138, null
  br i1 %148, label %150, label %149

149:                                              ; preds = %147
  call void @__assert_fail(ptr noundef nonnull @.str.150, ptr noundef nonnull @.str.14, i32 noundef 2062, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

150:                                              ; preds = %147
  %151 = call i32 @sc_map_size_sv(ptr noundef nonnull %6) #6
  %152 = icmp eq i32 %151, 64
  br i1 %152, label %154, label %153

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

154:                                              ; preds = %150
  %155 = call ptr @sc_map_del_sv(ptr noundef nonnull %6, ptr noundef %122) #6
  %156 = load i8, ptr %139, align 2, !tbaa !26, !range !14, !noundef !15
  %157 = trunc nuw i8 %156 to i1
  br i1 %157, label %159, label %158

158:                                              ; preds = %154
  call void @__assert_fail(ptr noundef nonnull @.str.155, ptr noundef nonnull @.str.14, i32 noundef 2066, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

159:                                              ; preds = %154
  %160 = icmp eq ptr %155, inttoptr (i64 12 to ptr)
  br i1 %160, label %162, label %161

161:                                              ; preds = %159
  call void @__assert_fail(ptr noundef nonnull @.str.152, ptr noundef nonnull @.str.14, i32 noundef 2067, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

162:                                              ; preds = %159
  %163 = call i32 @sc_map_size_sv(ptr noundef nonnull %6) #6
  %164 = icmp eq i32 %163, 63
  br i1 %164, label %166, label %165

165:                                              ; preds = %162
  call void @__assert_fail(ptr noundef nonnull @.str.157, ptr noundef nonnull @.str.14, i32 noundef 2068, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

166:                                              ; preds = %162
  call void @sc_map_clear_sv(ptr noundef nonnull %6) #6
  call void @sc_map_term_sv(ptr noundef nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  %167 = call zeroext i1 @sc_map_init_s64(ptr noundef nonnull %7, i32 noundef 0, i32 noundef 26) #6
  br i1 %167, label %.preheader, label %168

168:                                              ; preds = %166
  call void @__assert_fail(ptr noundef nonnull @.str.158, ptr noundef nonnull @.str.14, i32 noundef 2075, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

169:                                              ; preds = %.preheader
  %170 = call i64 @sc_map_get_s64(ptr noundef nonnull %7, ptr noundef %103) #6
  %171 = getelementptr inbounds i8, ptr %7, i64 26
  %172 = load i8, ptr %171, align 2, !tbaa !29, !range !14, !noundef !15
  %173 = trunc nuw i8 %172 to i1
  br i1 %173, label %178, label %177

.preheader:                                       ; preds = %166, %.preheader
  %indvars.iv91 = phi i64 [ %indvars.iv.next92, %.preheader ], [ 0, %166 ]
  %174 = getelementptr inbounds [128 x ptr], ptr %3, i64 0, i64 %indvars.iv91
  %175 = load ptr, ptr %174, align 8, !tbaa !21
  %176 = call i64 @sc_map_put_s64(ptr noundef nonnull %7, ptr noundef %175, i64 noundef %indvars.iv91) #6
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %exitcond94.not = icmp eq i64 %indvars.iv.next92, 64
  br i1 %exitcond94.not, label %169, label %.preheader, !llvm.loop !31

177:                                              ; preds = %169
  call void @__assert_fail(ptr noundef nonnull @.str.159, ptr noundef nonnull @.str.14, i32 noundef 2081, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

178:                                              ; preds = %169
  %179 = icmp eq i64 %170, 0
  br i1 %179, label %181, label %180

180:                                              ; preds = %178
  call void @__assert_fail(ptr noundef nonnull @.str.160, ptr noundef nonnull @.str.14, i32 noundef 2082, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

181:                                              ; preds = %178
  %182 = call i32 @sc_map_size_s64(ptr noundef nonnull %7) #6
  %183 = icmp eq i32 %182, 64
  br i1 %183, label %185, label %184

184:                                              ; preds = %181
  call void @__assert_fail(ptr noundef nonnull @.str.161, ptr noundef nonnull @.str.14, i32 noundef 2083, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

185:                                              ; preds = %181
  %186 = call i64 @sc_map_del_s64(ptr noundef nonnull %7, ptr noundef %122) #6
  %187 = load i8, ptr %171, align 2, !tbaa !29, !range !14, !noundef !15
  %188 = trunc nuw i8 %187 to i1
  br i1 %188, label %190, label %189

189:                                              ; preds = %185
  call void @__assert_fail(ptr noundef nonnull @.str.159, ptr noundef nonnull @.str.14, i32 noundef 2086, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

190:                                              ; preds = %185
  %191 = icmp eq i64 %186, 12
  br i1 %191, label %193, label %192

192:                                              ; preds = %190
  call void @__assert_fail(ptr noundef nonnull @.str.162, ptr noundef nonnull @.str.14, i32 noundef 2087, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

193:                                              ; preds = %190
  %194 = call i32 @sc_map_size_s64(ptr noundef nonnull %7) #6
  %195 = icmp eq i32 %194, 63
  br i1 %195, label %197, label %196

196:                                              ; preds = %193
  call void @__assert_fail(ptr noundef nonnull @.str.163, ptr noundef nonnull @.str.14, i32 noundef 2088, ptr noundef nonnull @__PRETTY_FUNCTION__.test4) #7
  unreachable

197:                                              ; preds = %193
  call void @sc_map_clear_s64(ptr noundef nonnull %7) #6
  call void @sc_map_term_s64(ptr noundef nonnull %7) #6
  br label %199

198:                                              ; preds = %199
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #6
  ret void

199:                                              ; preds = %197, %199
  %indvars.iv95 = phi i64 [ 0, %197 ], [ %indvars.iv.next96, %199 ]
  %200 = getelementptr inbounds [128 x ptr], ptr %3, i64 0, i64 %indvars.iv95
  %201 = load ptr, ptr %200, align 8, !tbaa !21
  call void @free(ptr noundef %201) #6
  %202 = getelementptr inbounds [128 x ptr], ptr %4, i64 0, i64 %indvars.iv95
  %203 = load ptr, ptr %202, align 8, !tbaa !21
  call void @free(ptr noundef %203) #6
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
  %exitcond98.not = icmp eq i64 %indvars.iv.next96, 128
  br i1 %exitcond98.not, label %198, label %199, !llvm.loop !32
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !13, i64 26}
!8 = !{!"sc_map_64s", !9, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !13, i64 24, !13, i64 25, !13, i64 26}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"int", !10, i64 0}
!13 = !{!"_Bool", !10, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = distinct !{!16, !6}
!17 = distinct !{!17, !6}
!18 = !{!19, !13, i64 26}
!19 = !{!"sc_map_64v", !9, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !13, i64 24, !13, i64 25, !13, i64 26}
!20 = distinct !{!20, !6}
!21 = !{!9, !9, i64 0}
!22 = distinct !{!22, !6}
!23 = !{!24, !13, i64 26}
!24 = !{!"sc_map_str", !9, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !13, i64 24, !13, i64 25, !13, i64 26}
!25 = distinct !{!25, !6}
!26 = !{!27, !13, i64 26}
!27 = !{!"sc_map_sv", !9, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !13, i64 24, !13, i64 25, !13, i64 26}
!28 = distinct !{!28, !6}
!29 = !{!30, !13, i64 26}
!30 = !{!"sc_map_s64", !9, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !13, i64 24, !13, i64 25, !13, i64 26}
!31 = distinct !{!31, !6}
!32 = distinct !{!32, !6}


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